Navigation drawer change color

前端 未结 7 656
慢半拍i
慢半拍i 2020-12-19 15:21

I am using Navigation drawer using this example. I want just change blue color to orange color how could I do this? I mean change listview selector color, actionbar selctor

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 15:47

    I would like to contribute to the answer given by @Raghunandan. In the list you can distinguish between items clicked (android:state_pressed) from items activated (android:state_activated), so if you click on the item in the list that is activated, the click is visualized.

    Create an activated.xml under the drawable folder:

    
     
        
    
    

    And modify the selector.xml adding the state_activated modifier:

    
    
        
    
        
    
        
    
    

提交回复
热议问题