Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to useDo not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use
我正在添加侧导航到我的应用程序的仪表板,同时我在仪表板的布局文件中添加了一个自定义工具栏。xml文件的工具栏代码是- android:id="@+id/toolbar"
androidDo not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false<
我的问题是:当我试图在模拟器中运行应用程序时,我的应用程序就崩溃了,我真的不知道问题是什么……下面是我的MainActivity类、androidManifest.xml、activity_main.xmldefault: }
return falseDo not request Window.FEATURE_SUPPORT_ACTION_BAR and set window
Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to useDo not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use
不要在主题中请求Window.FEATURE_SUPPORT_ACTION_BAR并将windowActionBar设置为false,以使用工具栏。在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity)
不要请求Window.FEATURE_SUPPORT_ACTION_BAR,并将主题中的windowActionBar设置为false,改为使用工具栏
think you'redeveloping for Android L but anyway Include this line
<item name="windowActionBar" >
Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use我正在使用工具栏,并将基本主题设置为.NoActionBar,因此它应该工作得很好。Theme.AppCompat.Light.NoActionBar">
<item name="drawerArrowStyle">
我有活动的设置,我可以选择光明或黑暗主题。设置活动
public class OTGEnabler extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener不要在主题中请求Window.FEATURE_SUPPORT_ACTION_BAR并将windowActionBar设置为