Closed anitaa1990 closed 7 years ago
Yeah, it is easy to expand the draglayout. Wrap the onClick function into a new public method, hope that helps.
Hi, I checked it out and had a doubt. How do we collapse the draglayout? In the clickListener there is an option to expand the draglayout and then open the detail screen. No option to collapse the layout.
Could you please guide on how to do this?
add a new method as follows:
public void collapse() {
if (mDragHelper.smoothSlideViewTo(topView, originX, originY)) {
ViewCompat.postInvalidateOnAnimation(DragLayout.this);
}
}
dragLayout.performClick();
not work!
how to expand manually?
Hi,
I would like to be able to expand the draglayout without any click function. Please let me know if this is possible at the moment and if so, how would I go about doing that?
Thanks for the awesome library!! You rock!