virsir
virsir

Reputation: 15489

Overlap problem with Android ListView selector

I am trying to style my ListView with two 9-patch background images (16px * 9px), one dark image for default state and another green image for selected and pressed state.

It works except for just one problem that when I select or press one list item, it seems that the selected item overlap the next one a little bit as I can see some pixels of the green background image is on the top of next item.

How to fix that?

Upvotes: 1

Views: 1028

Answers (1)

virsir
virsir

Reputation: 15489

OK, I found I set a padding there...

Upvotes: 1

Related Questions