How to change color of ListView items on focus and on click

前端 未结 7 1744
天命终不由人
天命终不由人 2020-11-27 03:44

i have a list View in my app (this is the xml layout):

   


        
相关标签:
7条回答
  • 2020-11-27 04:44
    <selector xmlns:android="http://schemas.android.com/apk/res/android" >    
        <item android:state_pressed="true" android:drawable="@drawable/YOUR DRAWABLE XML" /> 
        <item android:drawable="@drawable/YOUR DRAWABLE XML" />
    </selector>
    
    0 讨论(0)
提交回复
热议问题