android - fragment container won't fill parent -


as guys can see in image, fragment container exceeds smartphone screen, height set fill_parent, , it's included in (the custom view , drawer layout) fill_parent too. shouldn't fragment filling parent?

enter image description here enter image description here

<?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"     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="fill_parent">      <android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:tools="http://schemas.android.com/tools"         android:layout_width="match_parent"         android:layout_height="fill_parent"         xmlns:app="http://schemas.android.com/apk/res-auto"         android:paddingbottom="@dimen/activity_vertical_margin"         android:paddingleft="@dimen/activity_horizontal_margin"         android:paddingright="@dimen/activity_horizontal_margin"         android:paddingtop="@dimen/activity_vertical_margin"         tools:context="com.a.s.mainactivity">          <android.support.design.widget.appbarlayout             android:id="@+id/appbar"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:theme="@style/themeoverlay.appcompat.dark.actionbar"             >             <android.support.v7.widget.toolbar                 android:id="@+id/toolbar"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 app:popuptheme="@style/themeoverlay.appcompat.light"                 app:layout_scrollflags="scroll|enteralways|snap"                 android:background="#6495ed"                 />             <android.support.design.widget.tablayout                 android:id="@+id/tabs"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="#6495ed"                 />         </android.support.design.widget.appbarlayout>          <android.support.v4.view.viewpager             android:layout_width="match_parent"             android:layout_height="fill_parent"             android:id="@+id/fragment_container"             app:layout_behavior="@string/appbar_scrolling_view_behavior"             android:layout_below="@+id/appbar">          </android.support.v4.view.viewpager>     </android.support.design.widget.coordinatorlayout>     <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_nav"         app:menu="@menu/activity_nav_drawer" />  </android.support.v4.widget.drawerlayout> 


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -