Navigation drawer forces app name and icon to appear shortly on startup

前端 未结 2 1443
名媛妹妹
名媛妹妹 2021-01-28 10:17

Each time I start the app, the application name and icon appears very shortly on the left side over the drawer icon. This ruins the look of the custom ActionBar sty

相关标签:
2条回答
  • 2021-01-28 11:05

    Try to use these

    actionBar.setDisplayHomeAsUpEnabled(false); actionBar.setDisplayShowTitleEnabled(false);

    0 讨论(0)
  • 2021-01-28 11:06

    Best method is to set the display options to useLogo in your theme. E.g.

    <style name="AppTheme" parent="android:Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/AppTheme.ActionBar</item>
    </style>
    
    <style name="AppTheme.ActionBar" parent="android:Widget.Holo.Light.ActionBar.Solid">
        <item name="android:displayOptions">useLogo</item>
    </style>
    

    This won't actually show the logo (if set) because showHome is not included.

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