How to customize NavigationDrawer

44 views Asked by At

I have the seguent NavigationDrawer and it is ok:

<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >

<FrameLayout
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
</FrameLayout>

<ListView
    android:id="@+id/drawer"
    android:layout_width="240dp"
    android:layout_gravity="start"
    android:background="#FFF"
    android:choiceMode="singleChoice"
    android:layout_height="match_parent">
</ListView>

The problem is born when I try to customize my navigationDrawer, It should insert a "static" Text in my ListView (like a TextView) not like in adapter.

0

There are 0 answers