Android Navigation Drawer not at front



I'm having a / two problem(s) with the Android Navigation Drawer in XML.


When I put the android.support.v4.widget.DrawerLayout after



<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal|top" >

<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="#efefef"
android:textColor="#232323"
android:listSelector="@drawable/button_selector" />

</LinearLayout>


the ListView and any other Item is not clickable because it's behind the android.support.v4.widget.DrawerLayout


But when I put the android.support.v4.widget.DrawerLayout before the LinearLayout, the LinearLayout is at the front instead of the android.support.v4.widget.DrawerLayout


Any ideas or can you show me how to create a valid XML for that?


Thank you!


No comments:

Post a Comment