简体   繁体   中英

lazy SlidingDrawer

I'm using a SlidingDrawer and it works quite well in my application but... is it possible to have one that doesn't open or close entirely when the handle is touched? I'll try to explain better: dragging the handle up and down, my SlidingDrawer opens and closes correctly following up my finger but, when I stop touching, the view completes showing or hiding its content by itself (depending on its previous state). Is it possible to have a SlidingDrawer that behaves exactly as described but, once the touch is released, stop open or close preserving the height shown so far? Thanks!

here is the code to implement open and close drawer

    slidingDrawer = (SlidingDrawer) this.findViewById(R.id.slidingDrawer);    
    slidingDrawer.setOnDrawerOpenListener(this); 
    slidingDrawer.setOnDrawerCloseListener(this);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM