How to set title color in ActionBarSherlock?

前端 未结 5 683
余生分开走
余生分开走 2020-12-14 20:30

How to set title color in ActionBarSherlock?

Which theming attributes should I use?

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 21:05

    From the ActionBarSherlock website

    Parent Themes

    In order for the custom action bar implementation to function your application must use Theme.Sherlock, Theme.Sherlock.Light, or Theme.Sherlock.Light.DarkActionBar, or your custom theme must use one of the aforementioned as its parent.

    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...

    In short, that means you need to leave out the android: prefix when you're styling the ActionBar.

    Theming the title color

    
    
    
    
    
    
    
    
    

    NOTE

    I haven't tested this. Also, what have you tried? You should searching before posting on SO in the future.

提交回复
热议问题