ActionBar Lag in hiding title

后端 未结 1 1938
旧时难觅i
旧时难觅i 2020-12-15 13:47

I\'m using the ActionBarSherlock for my application and this is the code I use to hide the Title of ActionBar :

@Overr         


        
相关标签:
1条回答
  • 2020-12-15 14:31

    This is my solution, we need to define a new style and declare it in the Manifest

    <style name="VibhinnaTheme" parent="Theme.Sherlock.Light.ForceOverflow">
        <item name="android:actionBarStyle">@style/VibhinnaTheme.ActionBar</item>
        <item name="actionBarStyle">@style/VibhinnaTheme.ActionBar</item>
    </style>
    
    <style name="VibhinnaTheme.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid">
        <item name="android:displayOptions">showHome|useLogo</item>
        <item name="displayOptions">showHome|useLogo</item>
    </style>
    

    This link was helpful : LINK

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