На следующем изображении показана тень на моей панели инструментов.разрушающая тень DrawLayout
Как удалить эту тень и разместить мое меню под панелью инструментов?
Это мой код на панели инструментов:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#2196F3"
android:layoutDirection="ltr"
android:textDirection="rtl"
app:popupTheme="@style/AppTheme.PopupOverlay" />
это мой код слайд-меню:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v4.widget.DrawerLayout
android:id="@+id/my_drawerlayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<!-- your content layout -->
<include layout="@layout/activity_list"/>
<android.support.design.widget.NavigationView
android:layout_marginTop="61dp"
android:id="@+id/my_navigation"
android:layout_width="250dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layoutDirection="ltr"
app:headerLayout="@layout/drawer_header"
app:menu="@menu/drawer"/>
Какую тень вы имеете в виду? –
Я не понял ваш вопрос ... sory – Reza
Переместите «Панель инструментов» в «Код слайд-меню» внутри XML-документа RelativeLayout, но вне 'DrawerLayout', и выровняйте его вверху, с помощью' DrawerLayout' ниже. –