How to set the column size of a gridview in custom grid adapter? I have to set the column size according to the maximum value in an item in list which passed into the adapter? please suggest me an option?
Asked
Active
Viewed 153 times
3
-
1You'll have to create a custom layout for it. – Anshul Tyagi May 20 '15 at 04:16
-
i did it. i parsed a json array and stored values in a List. I have to set these images according to these values in each position But the problem is the column value change according to the json array we get. – Ninja May 20 '15 at 04:19
-
Post your code please. – Anshul Tyagi May 20 '15 at 04:20
-
check this link http://stackoverflow.com/questions/6912922/android-how-does-gridview-auto-fit-find-the-number-of-columns – Jignesh Jain May 20 '15 at 04:22