android - How to make the second navigation drawer NOT cover the app bar? -


i've been dealing drawerlayout , navigationviews , don't seem ba able solve issue. according google guidelines first navbar should cover app bar , second 1 should not.

how achieve that? whatever either makes both of them cover or both of them not cover app bar.

since navigation view pretty new not suitable answer googling , exploring overflow.com. guide, help, tutorial, sample... highly appreciated.

thanks before.

here activity.xml

<android.support.v4.widget.drawerlayout         xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:app="http://schemas.android.com/apk/res-auto"         android:id="@+id/drawer_layout"         android:layout_width="match_parent"         android:layout_height="match_parent">      <!-- main content view, view below consumes entire          space available using match_parent in both dimensions. -->     <linearlayout             android:orientation="vertical"             android:id="@+id/container"             android:layout_width="match_parent"             android:layout_height="match_parent"             >         <include                 android:id="@+id/app_bar"                 layout="@layout/app_bar">         </include>     </linearlayout>       <android.support.design.widget.navigationview             android:id="@+id/nav_draw"             android:layout_width="wrap_content"             android:layout_height="match_parent"             android:layout_gravity="start"             app:headerlayout="@layout/drawer_header"             app:menu="@menu/drawer"/>     <android.support.design.widget.navigationview             android:id="@+id/second_nav_draw"             android:layout_width="wrap_content"             android:layout_height="match_parent"             android:layout_gravity="end"             /> </android.support.v4.widget.drawerlayout> 

i don't know navigationview, other views simple margin used work. try:

android:layout_margintop="?attr/actionbarsize" 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -