AndroidSwipeLayout icon indicating copy to clipboard operation
AndroidSwipeLayout copied to clipboard

Trigger action and close layout after swiping

Open gnuhel opened this issue 11 years ago • 4 comments

It is possible to trigger an action and close the layout after swiping the surface?

gnuhel avatar Feb 02 '15 11:02 gnuhel

Add a SwipeLayout.SwipeListener (use SimpleSwipeListener) and override and trigger your action in onOpen() along with calling close()

mattiasbe avatar Feb 11 '15 13:02 mattiasbe

does it close the surface automatically? or do I have to do it manually? if yes, how could I do it? Thanks

gnuhel avatar Feb 11 '15 13:02 gnuhel

Updated my answer while you replied with exactly that, need to call close() as well on the layout to get as a parameter in onOpen

mattiasbe avatar Feb 11 '15 13:02 mattiasbe

cool thanks

gnuhel avatar Feb 11 '15 13:02 gnuhel