android - ListView (height) inside DrawerLayout doesn't fill the screen -


i use listview navigationview inside custom drawerlayout when removed items listviewthis later doesn't fill screen.

screenshot

enter image description here

layout.xml

<ma.www.helpers.hackydrawerlayout     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent">     <linearlayout         android:layout_width="fill_parent"         android:layout_="0dp"         android:orientation="vertical"         android:weightsum="15">          <!-- framelayout display fragments act/profe/rechercher -->         <framelayout             android:id="@+id/frame_container"             android:layout_width="fill_parent"             android:layout_height="0dp"             android:layout_weight="9"/>         <!-- framelayout display menu-->         <framelayout             android:id="@+id/frame_menu"             android:layout_width="fill_parent"             android:layout_height="0dp"             android:layout_weight="6">              <gridview                 android:scrollbarthumbvertical="@drawable/custom_scroll_style"                 android:fadescrollbars="false"                 android:id="@+id/gridview"                 android:layout_width="fill_parent"                 android:layout_height="fill_parent"                 android:numcolumns="2"                 android:stretchmode="columnwidth"                 android:gravity="fill" />         </framelayout>     </linearlayout>     <!-- listview display slider menu -->     <listview         android:id="@+id/list_slidermenu"         android:layout_width="250dp"         android:layout_height="fill_parent"         android:layout_gravity="start"         android:gravity="center"         android:choicemode="singlechoice"         android:scrollbarsize="10dp"         android:scrollbarthumbvertical="@drawable/custom_scroll_style"         android:divider="#ce2580"         android:dividerheight="1dp"/> </ma.www.helpers.hackydrawerlayout> 

you can either of 2 ways: 1. use relativelayout instead of linearlayout. 2. adjust first list fills full row occupied.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -