¡@

Home 

2014/10/16 ¤W¤È 08:10:15

android Programming Glossary: aspectgrid

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

is my first custom view feedback is welcome Limitations AspectGrid completely ignores the size that its children want to be. For.. needs a lot of extra work. The size that is suggested by AspectGrid 's parent is used without a second thought. This is related.. is to it the rest is just plumbing. The code com photogrid AspectGrid.java The actual ViewGroup class package com.photogrid import..

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

a custom view which should be an interesting exercise. This is my first custom view feedback is welcome Limitations AspectGrid completely ignores the size that its children want to be. For your purposes this appears to be okay. If something fancier.. appears to be okay. If something fancier is needed onMeasure needs a lot of extra work. The size that is suggested by AspectGrid 's parent is used without a second thought. This is related to the previous issue. Screenshots How it works A main parameter.. narrower as in the landscape example . That's all there is to it the rest is just plumbing. The code com photogrid AspectGrid.java The actual ViewGroup class package com.photogrid import android.content.Context public class AspectGrid extends ViewGroup..