Getting DrawerLayout to Slide over the ActionBar

you can use below libraries to get navigation model similar to Google play music app. ActionBarSherlock (github) nested-fragments (github) PagerSlidingTabStrip (github) NavigationDrawer (Android developer site) Latest Support v4 library I have created a project Navigation Drawer with Tab Strip Example at github, have a look at it. Below is the screenshot of it.

Android: can height of SlidingDrawer be set with wrap_content?

The onMeasure() method of the SlidingDrawer class basically overrides the layout modes to fill_parent, this is why layout_height=”wrap_content” is not working. To get around this, you can extend SlidingDrawer with a re-implemented onMeasure() method that honors the layout_width and layout_height attributes. You can then use this custom class in your XML layout by replacing <SlidingDrawer … Read more

sliding drawer appear in all activities

Extending is the right way. Just override setContentView in the right way. Here’s the working example, but instead of drawer, I use a created a custom tabbar: Define a layout with your drawer like this: this is act_layout.xml <LinearLayout … android:orientation=”vertical” > <YourDrawer … /> <FrameLayout android:id=”@+id/act_content” … > // Here will be all activity … Read more