microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 279 forks source link

How to Stickto both "Top" and "Bottom" sides? #74

Open jamesmartins opened 9 years ago

jamesmartins commented 9 years ago

Hello! I need to sliding stickto both sides on same time. How with yours library?

Thanks.

JlUgia commented 9 years ago

Hi @jamesmartins. Use stickTo to set where do you want to layer to appear from. If you need its boundaries to cover the entire screen simply do so using the typical mechanism in your layout. For example, suppose your layer lives inside a FrameLayout, and you want it to come from the bottom and cover the entire screen:

<com.wunderlist.slidinglayer.SlidingLayer
            android:layout_width="<width>"
            android:layout_height="match_parent"
            slidingLayer:stickTo="bottom"
            .../>

Hope it helps.