I need to know how to set the LayoutParam
according to the resolution of the mobile phones..
Im using a GridView
where I'm using GridView.LayoutParams(45, 45)
.. Now if I'm 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 similar?
Does using android:numColumns or setNumColumns(int numColumns) not work for your needs?
http://developer.android.com/reference/android/widget/GridView.html#setNumColumns(int)