liuguangqiang / SwipeBack

SwipeBack is an android library that can finish a activity by using gesture.
Apache License 2.0
1.74k stars 314 forks source link

Sensitivity, DragEdge.VERTICAL and DragEdge.HORIZONTAL #26

Closed KaNcHeR closed 6 years ago

KaNcHeR commented 8 years ago

It will be cool if it will be possible to adjust the sensitivity. A swipe is also simultaneously in different directions, for example DragEdge.VERTICAL and DragEdge.HORIZONTAL.

Mahdiazadbar commented 8 years ago

+1

evrenozturkhurriyet commented 7 years ago

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());
pavel163 commented 7 years ago

@KaNcHeR Hello. While you can use this solution https://github.com/pavel163/SwipeBack

KaNcHeR commented 6 years ago

@pavel163 Спасибо!