w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Highlight entire item in Cards UI ListView

Check this out:ListView - Highlight sub layout of item. I've implemented exactly what I think you're looking to do.

Basically, for what you've got, you need to have the selector reference a background xml file in the "drawable" property of the each item. You would need at least two background xml files, one for normal state and one for pressed which has the color changes you want. Should work after that.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.