@@ -39,17 +39,24 @@ If you decide to use SlidingMenu as a view, you can define it in your xml layout
39
39
android : layout_height =" fill_parent"
40
40
sliding : viewAbove =" @layout/YOUR_ABOVE_VIEW"
41
41
sliding : viewBehind =" @layout/YOUR_BEHIND_BEHIND"
42
+ sliding : touchModeAbove =" margin|fullscreen"
43
+ sliding : touchModeBehind =" margin|fullscreen"
42
44
sliding : behindOffset =" @dimen/YOUR_OFFSET"
43
- sliding : behindScrollScale =" @dimen/YOUR_SCALE" />
45
+ sliding : behindScrollScale =" @dimen/YOUR_SCALE" />
44
46
```
45
47
* ` viewAbove ` - a reference to the layout that you want to use as the above view of the SlidingMenu
46
48
* ` 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.
47
54
* ` 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.
49
56
* ` behindScrollScale ` - a float representing the relationship between the above view scrolling and the behind
50
57
behind view scrolling. If set to 0.5f, the behind view will scroll 1px for every 2px that the above view scrolls.
51
58
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.
53
60
54
61
Developed By
55
62
------------
0 commit comments