0
我需要的是完全由该线程解决一个GridView:在Android应用使用layout_weight
How to layout a 'grid' of images in the center of the screen
现在的问题是,我想提出一个TextView在窗口的底部,但AspectGrid只是把它从屏幕上推开。我尝试使用layout_weight来解决问题,但它没有任何效果。
任何想法?
我需要的是完全由该线程解决一个GridView:在Android应用使用layout_weight
How to layout a 'grid' of images in the center of the screen
现在的问题是,我想提出一个TextView在窗口的底部,但AspectGrid只是把它从屏幕上推开。我尝试使用layout_weight来解决问题,但它没有任何效果。
任何想法?
将layout_height
的com.photogrid.AspectGrid
从fill_parent
更改为wrap_content
或固定高度(如52dip),然后您可以根据需要调整重量。
如果你只需要在屏幕上这两个项目可以在TextView
的高度设置为wrap_content
,然后设置的layout_weight
的AspectGrid
为1
它也可能是让你知道,layout_weight
分配空屏幕上的空间 - 它不会影响已经占用的空间。