Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top