GridView中寻找每个设备中呈三角 [英] GridView looking simillar in every device
问题描述
我需要知道如何在 LayoutParam
根据手机的分辨率设置..
即时通讯使用 GridView控件,其中IM使用
GridView.LayoutParams(45,45)
..现在,如果使用移动小IM屏幕尺寸是确定..但是,如果我像在大屏幕设备测试的 HTC Desire HD的,然后看着它这么小。如何让一切为呈三角..
在此先感谢..
I need to know how to set the LayoutParam
according to the resolution of the mobile phones..
Im using a GridView
where im using GridView.LayoutParams(45, 45)
.. Now if im using mobile with small screen size is ok.. But if i test with the big screen device like HTC Desire HD then its looking so small.. How to make everything as simillar..
Thanks in advance..
推荐答案
是否采用了android:为numColumns或setNumColumns(INT为numColumns)不是你的工作需要
Does using android:numColumns or setNumColumns(int numColumns) not work for your needs?
的http://developer.android.com/reference/android/widget/GridView.html#setNumColumns(int)
这篇关于GridView中寻找每个设备中呈三角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!