문제

They have states for things like pressed, focused, disabled, but is it possible to create custom states so it could reflect some of my own custom criteria?

For example, say you have a list of names. Some people fall into a certain category that should be visually represented differently. These people's rows would then have a different state and background drawable.

도움이 되었습니까?

해결책

This article shows how to do it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top