For some reason, I didn't have extra space around gridview's column borders in emulator but found out that the extra pixels in my real device (Galaxy S). So I would like to try:
android:listSelector="@null"
programmatically.
I know its related method is setSelector
. But what number or id should I give for "@null"
? I tried 0
but it made app crash.
UPDATE: I resolved the problem by making my own selector.
Use this:
listView.setSelector(new StateListDrawable());
Will disable the selector :)
Use
listView.setSelector(android.R.color.transparent);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With