SwipeBack icon indicating copy to clipboard operation
SwipeBack copied to clipboard

how to set the trigger zone?

Open chenwulue opened this issue 8 years ago • 2 comments

how to set the trigger zone

chenwulue avatar Sep 01 '16 11:09 chenwulue

In SwipeBackLayout there is a dragHelper. You might adjust the sensitivity while creating the the helper. 1 is full sensitivity. I find it usefull to use as 0.1f.

    viewDragHelper = ViewDragHelper.create(this, 0.1f, new ViewDragHelperCallBack());

evrenozturkhurriyet avatar Oct 14 '16 12:10 evrenozturkhurriyet

In SwipeBackLayout there is a dragHelper. You might adjust the sensitivity while creating the the helper. 1 is full sensitivity. I find it usefull to use as 0.1f.

    viewDragHelper = ViewDragHelper.create(this, 0.1f, new ViewDragHelperCallBack());

Hey Evren, I have issue as like triggering threshold or i cant set sensitivity even i use your code in Kotlin. Your code has been syntax error in Kotlin. How can i set ViewDragHelper sensitivity?

Mrtckr008 avatar Jan 24 '20 07:01 Mrtckr008