This Activity already has an action bar supplied by the window decor

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

主要是以下配置

<item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>

说点什么

avatar
  Subscribe  
提醒