Skip to content

Commit 610bdee

Browse files
author
jfeinstein10
committed
2 parents 0201803 + 225cd69 commit 610bdee

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,24 @@ If you decide to use SlidingMenu as a view, you can define it in your xml layout
3939
android:layout_height="fill_parent"
4040
sliding:viewAbove="@layout/YOUR_ABOVE_VIEW"
4141
sliding:viewBehind="@layout/YOUR_BEHIND_BEHIND"
42+
sliding:touchModeAbove="margin|fullscreen"
43+
sliding:touchModeBehind="margin|fullscreen"
4244
sliding:behindOffset="@dimen/YOUR_OFFSET"
43-
sliding:behindScrollScale="@dimen/YOUR_SCALE" />
45+
sliding:behindScrollScale="@dimen/YOUR_SCALE"/>
4446
```
4547
* `viewAbove` - a reference to the layout that you want to use as the above view of the SlidingMenu
4648
* `viewBehind` - a reference to the layout that you want to use as the behind view of the SlidingMenu
49+
* `touchModeAbove` - an enum that designates what part of the screen is touchable when the above view is
50+
showing. Margin means only the left margin. Fullscreen means the entire screen. Default is margin.
51+
* `touchModeBehind` - an enum that designates what part of the screen is touchable when the behind view
52+
is showing. Margin means only what is showing of the above view. Fullscreen means the entire screen.
53+
Default is margin.
4754
* `behindOffset` - a dimension representing the number of pixels that you want the above view to show when the
48-
behind view is showing
55+
behind view is showing. Default is 0.
4956
* `behindScrollScale` - a float representing the relationship between the above view scrolling and the behind
5057
behind view scrolling. If set to 0.5f, the behind view will scroll 1px for every 2px that the above view scrolls.
5158
If set to 1.0f, the behind view will scroll 1px for every 1px that the above view scrolls. And if set to 0.0f, the
52-
behind view will never scroll; it will be static. This one is fun to play around with.
59+
behind view will never scroll; it will be static. This one is fun to play around with. Default is 0.
5360

5461
Developed By
5562
------------

0 commit comments

Comments
 (0)