Trying to add a footer to a navigation drawer that consists of two lists. I am not doing this right, I understood that anything that i want in the navigation drawer should be encapsulated in the
<LinearLayout
android:id="@+id/left_drawer_layout"
I would like to add a bottom layout that does not depend on ListView scroll. I tried different versions of where to add the bottom layout code but nothing happens. I need an extra eye, please. Thank you.
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar”/>
<!-- Framelayout to display Fragments -->
<FrameLayout
android:id="@+id/frame_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<!-- Listview to display slider menu -->
<LinearLayout
android:id="@+id/left_drawer_layout"
android:layout_width="@dimen/navigation_drawer_max_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/list_background">
<Button
android:id="@+id/refreshBtn"
android:layout_width="match_parent"
android:layout_height="48dp"
android:text="@string/refresh"
android:visibility="gone" />
<EditText
android:id="@+id/searchMenuTxt"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/list_background_pressed"
android:drawableLeft="@drawable/search_web"
android:drawablePadding="@dimen/activity_horizontal_margin"
android:drawableStart="@drawable/search_web"
android:focusable="false"
android:focusableInTouchMode="true"
android:hint="@string/search"
android:paddingLeft="8dp"
android:singleLine="true"
android:textColorHint="@android:color/darker_gray"
android:textSize="@dimen/text_size_14"></EditText>
<Button
android:id="@+id/clearBtn"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="right|center"
android:background="@drawable/mob_clear"
android:paddingRight="8dp"
android:visibility="invisible" />
</FrameLayout>
<LinearLayout
android:id="@+id/left_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:id="@+id/activeChatsList"
android:layout_width="@dimen/navigation_drawer_max_width"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:background="@color/list_background_pressed"
android:choiceMode="singleChoice"
android:divider="@drawable/list_divider"
android:dividerHeight="1dp"
android:fadeScrollbars="false"
android:fastScrollEnabled="false" />
<ListView
android:id="@+id/drawerListView"
android:layout_width="@dimen/navigation_drawer_max_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@drawable/list_selector"
android:choiceMode="singleChoice"
android:divider="@drawable/list_divider"
android:dividerHeight="1dp"
android:drawSelectorOnTop="true"
android:fastScrollEnabled="false"
android:minHeight="250dp" />
<LinearLayout
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_alignParentBottom="true">
<Button android:id="@+id/CancelButton" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text=“Profile" />
>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>