How can I change the touch effect color of the ActionBar in Android 3.0 and higher

前端 未结 1 1944
长发绾君心
长发绾君心 2020-12-02 14:01

I am trying to change the color of the rollover effect when you touch an ActionBar Item. On my Galaxy Nexus with 4.0.2 it\'s kind of a turquoise color shading which I want t

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 14:27

    The native action bar uses the theme attribute selectableItemBackground for action item background drawing. This should be a state-list drawable.

    Here's the declaration in Theme.Holo:

    
    

    And its drawable XML:

    
    
        
        
        
        
        
        
        
    
    

    0 讨论(0)
提交回复
热议问题