Skip to content Skip to sidebar Skip to footer

Locked First Element In Android Sliding Menu

I'm designing android side sliding menu based on examples with navigation drawer pattern like this : ...

Solution 1:

Change your layout as below. This will work fine. Make changes in linear layout for your top user details.

    <android.support.v4.widget.DrawerLayout>

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

        <FrameLayout
            android:id="@+id/drawerContainer"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="start"
            android:layout_marginRight="20dp" >

            <LinearLayout
                android:id="@+id/slide_menu_ll_user"
                android:layout_width="match_parent"
                android:layout_height="72dp"
                android:layout_gravity="left"
                android:clickable="true"
                android:focusable="true"
                android:orientation="horizontal" >

                <TextView />

                <ImageButton />
            </LinearLayout>

            <ListView />
        </FrameLayout>

    </android.support.v4.widget.DrawerLayout>

Post a Comment for "Locked First Element In Android Sliding Menu"