How to change action bar background and text colors

前端 未结 1 1520
臣服心动
臣服心动 2021-01-29 08:53

I am using navigation drawer from this tutorial

http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

and i am trying to change acti

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-29 09:24

    Try this in styles.xml:

        
    
        
        
    
        
        
    
        
    
        
    
    
    

    Remove these two lines:

    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
    

    It will work for you.

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