Set layout below navigationBar in coordinatorLayout android -


the question simple: how set (any) layout bellow navigation bar in coordinatorlayout?

if use framelayout in relativelayout, relativelayout height fill whole screen include navigationbar.

here code:

<relativelayout     android:id="@+id/drawer_container"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitssystemwindows="false"     app:layout_behavior="@string/appbar_scrolling_view_behavior">      <framelayout         android:id="@+id/framelayout"         android:layout_width="match_parent"         android:layout_height="match_parent" /> </relativelayout>  <android.support.design.widget.appbarlayout     android:layout_width="match_parent"     android:layout_height="wrap_content">      <android.support.v7.widget.toolbar         android:id="@+id/toolbar"         android:layout_width="match_parent"         android:layout_height="?android:attr/actionbarsize"         android:background="@color/primary"         app:layout_scrollflags="scroll|enteralways"         android:minheight="?android:attr/actionbarsize"         app:popuptheme="@style/materialdrawertheme.light.darktoolbar"         app:theme="@style/toolbartheme">              <textview                 android:id="@+id/toolbar_title"                 style="@style/textappearance.appcompat.widget.actionbar.title"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_centervertical="true"                 android:gravity="center"                 android:textcolor="@color/icons" />      </android.support.v7.widget.toolbar> </android.support.design.widget.appbarlayout> 

and problem (after added fragment framelayout): image 1

and android studio preview screen: image 2

(sorry images, haven't got enough repulation post directly here :( )

change android:fitssystemwindows false:

android:fitssystemwindows="false"


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -