How do I change the background color of the ActionBar of an ActionBarActivity using XML?

后端 未结 20 2749
我寻月下人不归
我寻月下人不归 2020-11-22 01:09

Details:

I\'m extending ActionBarActivity.
Eclipse and SDK fully patched as of 2011-11-06.



        
20条回答
  •  无人及你
    2020-11-22 01:46

    I had the same problem, where my Action Bar would turn grey when I entered that code. Chances are your original style sheet looked like this:

    
    

    The "DarkActionBar" was what was keeping your Action Bar grey. I changed it to this, and it worked:

    
    
            
    
        
    

    I also threw in how to edit the text color. Also, no need to change anything surrounding the resources.

    -Warren

提交回复
热议问题