AndroidSwipeLayout icon indicating copy to clipboard operation
AndroidSwipeLayout copied to clipboard

Swipe layout is reset to closed position if a handler updates one of its views

Open Chuque opened this issue 7 years ago • 3 comments

When swiping or when the swipe layout is opened, the layout is reset to the closed position if an view is updated by a handler. I am using an textview inside the top view to display elapsed time, updating it every second using a handler. So, every second the whole swipeLayout is reset to the closed position, even when it is being dragged by swiping it with user's finger.

Chuque avatar Aug 16 '18 14:08 Chuque

This problem is same me. Help us

akashjpro avatar Aug 29 '18 07:08 akashjpro

me to

Aimank96 avatar Oct 01 '18 04:10 Aimank96

When swiping or when the swipe layout is opened, the layout is reset to the closed position if an view is updated by a handler. I am using an textview inside the top view to display elapsed time, updating it every second using a handler. So, every second the whole swipeLayout is reset to the closed position, even when it is being dragged by swiping it with user's finger.

dont use visibility.GONE just use visibility.INVISIBILE

sajad-zohrei avatar Apr 09 '19 12:04 sajad-zohrei