Skip to content

Commit 41c5996

Browse files
committed
Update README.md
1 parent 52bcb09 commit 41c5996

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ If you decide to use SlidingMenu as a view, you can define it in your xml layout
4242
sliding:touchModeAbove="margin|fullscreen"
4343
sliding:touchModeBehind="margin|fullscreen"
4444
sliding:behindOffset="@dimen/YOUR_OFFSET"
45-
sliding:behindScrollScale="@dimen/YOUR_SCALE"/>
45+
sliding:behindScrollScale="@dimen/YOUR_SCALE"
46+
sliding:shadowDrawable="@drawable/YOUR_SHADOW"
47+
sliding:shadowWidth="@dimen/YOUR_SHADOW_WIDTH" />
4648
```
4749
* `viewAbove` - a reference to the layout that you want to use as the above view of the SlidingMenu
4850
* `viewBehind` - a reference to the layout that you want to use as the behind view of the SlidingMenu
@@ -57,6 +59,9 @@ behind view is showing. Default is 0.
5759
behind view scrolling. If set to 0.5f, the behind view will scroll 1px for every 2px that the above view scrolls.
5860
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
5961
behind view will never scroll; it will be static. This one is fun to play around with. Default is 0.
62+
* `shadowDrawable` - a reference to a drawable to be used as a drop shadow from the above view onto the below view.
63+
Default is no shadow for now.
64+
* `shadowWidth` - a dimension representing the width of the shadow drawable. Default is 0.
6065

6166
Developed By
6267
------------

0 commit comments

Comments
 (0)