I following the answer in this topic Gridview with two columns and auto resized images
But, I get error at this line
items.add(new Item("Red", R.drawable.red));
The cause is the requirement of 2nd params is a String
. But, R.drawable.red
is integer
.
So, anyone can teach me solve this problem?
Thanks