【发布时间】:2018-08-30 08:04:15
【问题描述】:
我在我的活动中添加了一个滑动抽屉,但它改变了操作栏部分的颜色
如何让操作栏颜色统一?
编辑:这是我的 xml 代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/layout_NotesActivity"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginTop="0dp">
<include layout="@layout/notes_activity_content" />
<android.support.design.widget.NavigationView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:itemTextColor="@android:color/background_dark"
app:menu="@menu/menu_drawer" />
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>
【问题讨论】:
-
分享你的布局代码
-
不清楚你在问什么。请分享您的代码、相关图片并具体说明您的问题,以便我们为您提供帮助。
标签: android android-actionbar slidingdrawer