android-sliding-layer-lib icon indicating copy to clipboard operation
android-sliding-layer-lib copied to clipboard

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

Open jamesmartins opened this issue 10 years ago • 1 comments

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

Thanks.

jamesmartins avatar Apr 29 '15 00:04 jamesmartins

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.

JlUgia avatar Jun 14 '15 16:06 JlUgia