Most apps that maintain active state in a menu listView also provide a small imageView visual in addition to color change.

How would you do this?

Would it be a part of the state_activated=true selector somehow, or should it be done programatcally in Java and perhaps in the ListAdapter?.

In the image below, you see on the Youtube app, the acte state has BOTH Background image change AND the visual indicator. (Red Line)

enter image description here

有帮助吗?

解决方案

You can do that by make 9 patch image and use it as background when the row activate.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top