Java galaxy s3上未显示导航抽屉工具栏
我有一个应用程序在它的主布局上使用导航抽屉,除了galaxy s3之外,它在我检查的每台设备上都能正常工作。 在我的galaxy s3中,上面的工具栏没有显示,但是如果我从侧面拖动手指,导航抽屉窗口就会打开。。 有人知道这个问题和解决方法吗 这是我的应用程序的主要布局Java galaxy s3上未显示导航抽屉工具栏,java,android,android-layout,navigation-drawer,Java,Android,Android Layout,Navigation Drawer,我有一个应用程序在它的主布局上使用导航抽屉,除了galaxy s3之外,它在我检查的每台设备上都能正常工作。 在我的galaxy s3中,上面的工具栏没有显示,但是如果我从侧面拖动手指,导航抽屉窗口就会打开。。 有人知道这个问题和解决方法吗 这是我的应用程序的主要布局 <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android=
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.nightme.nightme.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#14418a"
android:theme="@style/ThemeOverlay.AppCompat.Dark"
>
<TextView
android:id="@+id/toolbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="30dp"
android:text="App"
android:layout_gravity="center"
/>
<ImageView
android:id="@+id/favorites"
android:layout_width="36dp"
android:layout_height="36dp"
android:src="@drawable/empty_star"
android:layout_gravity="end"
/>
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/recycler_activity" />
</android.support.design.widget.CoordinatorLayout>
主要活动
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>