-1

i have created a slidermenu but the issue i am having is that it does not slide the action bar?

It only slides the content.

Here is my xml of the activity

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

    <FrameLayout

        android:id="@+id/content_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context="com.me.ui.MainActivity">

        <LinearLayout
            android:id="@+id/container"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical">

        </LinearLayout>


    </FrameLayout>

    <ListView
        android:id="@+id/side_menu"
        android:layout_width="@dimen/slide_menu_width"
        android:layout_height="fill_parent"
        android:layout_gravity="start"
        android:background="@android:color/black"
        android:choiceMode="singleChoice"
        android:divider="@null"></ListView>
</android.support.v4.widget.DrawerLayout>
Jono
  • 17,341
  • 48
  • 135
  • 217

1 Answers1

1

The "native" navigation drawer is intended to slide only the content, not the actionbar. Some early implementations (i.e. not official) allowed the actionbar to be slided too, but the implementation provided by the support library does not.

Check this answer for example.

Community
  • 1
  • 1
fedepaol
  • 6,834
  • 3
  • 27
  • 34
  • Maybe bad design practise to slide the action bar? – Jono Oct 17 '14 at 09:00
  • I would not call it bad (or good) design, but it is not what the majority of the users will expect since the common behaviour is not to slide it – fedepaol Oct 17 '14 at 10:34