Change Action Bar Title color

后端 未结 8 1738
南笙
南笙 2020-12-04 21:57

My code is as below and while it works ( when I change the parent Theme to Theme.Sherlock or Theme.Sherlock.Light the Theme it does changes) it does not changes the Title co

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 22:43

    From Jake Wharton's ActionBarSherlock site :

    Mirrored Attributes

    Due to limitations in Android's theming system any theme customizations must be declared in two attributes. The normal android-prefixed attributes apply the theme to the native action bar and the unprefixed attributes are for the custom implementation.

    Had to change MyTheme.ActionBarStyle to :

       
    

    Now the Title text color has changed.

提交回复
热议问题