Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Navigation Drawer without Listview

Tags:

android

i want to create a swipe menu like navigation drawer. But there is going to be textviews and imageviews, like a half activity. Is it possible to make this?

like image 211
user666 Avatar asked Dec 27 '13 20:12

user666


2 Answers

You can use NavigationDrawer from support library.

Include a FrameLayout as a child of the DrawerLayout and make the android:layout_gravity="left". Then put anything you want in it. You do not have to use only ListView. What you put in a view that has left gravity will be the left menu

like image 127
tasomaniac Avatar answered Oct 13 '22 04:10

tasomaniac


Yes it's possible. This is tutorial for navigation drawer

and you can create custom fragment instead of listview. use fragment to display slider menu

like image 42
henry4343 Avatar answered Oct 13 '22 05:10

henry4343