Skip to content

Instantly share code, notes, and snippets.

@mvberg
Created November 15, 2013 18:09
Show Gist options
  • Save mvberg/7488949 to your computer and use it in GitHub Desktop.
Save mvberg/7488949 to your computer and use it in GitHub Desktop.
Hiding SlidingMenu until user interaction
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:sliding="http://schemas.android.com/apk/res-auto"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<com.jeremyfeinstein.slidingmenu.lib.SlidingMenu
android:id="@+id/slidingmenulayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="gone"
sliding:behindOffset="100dp"
sliding:behindScrollScale="0.0"
sliding:selectorEnabled="false"
sliding:shadowWidth="50dp"
sliding:touchModeAbove="fullscreen"
sliding:viewBehind="@layout/menu_frame" />
<include
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
layout="@layout/layout_content_watchlist" />
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/footer_main" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment