The code below is what I use to create a GridView in my app. But the problem is the list selector's width and height is not equal to the icon's width and height(Image 1). The Image #2 is what I am trying to accomplish.
Asked
Active
Viewed 1,202 times
1 Answers
1

Community
- 1
- 1

Tae-Sung Shin
- 20,215
- 33
- 138
- 240
-
Which one is not working? custom selector or null selector? What do you mean by not working? the same result or unexpected result? – Tae-Sung Shin Jan 02 '12 at 03:50
-
I tried to apply the android:listSelector="@null" and it didn't work, then I went to the site you put and follow their codes, it has the same result – Leon Jan 02 '12 at 03:57
-
Post your custom selector. It might help. – Tae-Sung Shin Jan 02 '12 at 04:02
-
On second thought, it is related to your item view. If you are creating the item in an adapter. Please post your adapter code too. – Tae-Sung Shin Jan 02 '12 at 04:12