¡@

Home 

2014/10/16 ¤W¤È 08:19:49

android Programming Glossary: mverticalspacing

How to layout a 'grid' of images in the center of the screen

http://stackoverflow.com/questions/4592065/how-to-layout-a-grid-of-images-in-the-center-of-the-screen

mNumColumns 1 private int mHorizontalSpacing 0 private int mVerticalSpacing 0 private float mChildAspectRatio 1.0f public AspectGrid Context.. R.styleable.AspectGrid_verticalSpacing mVerticalSpacing setChildAspectRatio a.getFloat R.styleable.AspectGrid_childAspectRatio.. horizontalSpacing public int getVerticalSpacing return mVerticalSpacing public void setVerticalSpacing int verticalSpacing mVerticalSpacing..

How to layout a 'grid' of images in the center of the screen

http://stackoverflow.com/questions/4592065/how-to-layout-a-grid-of-images-in-the-center-of-the-screen

public class AspectGrid extends ViewGroup private int mNumColumns 1 private int mHorizontalSpacing 0 private int mVerticalSpacing 0 private float mChildAspectRatio 1.0f public AspectGrid Context context super context public AspectGrid Context context.. mHorizontalSpacing setVerticalSpacing a.getDimensionPixelSize R.styleable.AspectGrid_verticalSpacing mVerticalSpacing setChildAspectRatio a.getFloat R.styleable.AspectGrid_childAspectRatio mChildAspectRatio a.recycle catch RuntimeException.. setHorizontalSpacing int horizontalSpacing mHorizontalSpacing horizontalSpacing public int getVerticalSpacing return mVerticalSpacing public void setVerticalSpacing int verticalSpacing mVerticalSpacing verticalSpacing public float getChildAspectRatio return..