Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top