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

前端 未结 3 2222
闹比i
闹比i 2021-02-12 15:17

This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolba

3条回答
  •  没有蜡笔的小新
    2021-02-12 16:01

    Use style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" and everywhere use the same Theme as this maintain flow of Context to Android as it do not get confused between two ActionBar.

提交回复
热议问题