Added new draggable icons
This commit is contained in:
parent
9b407d2c94
commit
784a9bf777
8 changed files with 129 additions and 4 deletions
|
|
@ -267,7 +267,7 @@ public class DynamicListView extends ListView {
|
|||
int deltaY = mLastEventY - mDownY;
|
||||
|
||||
if (mMode == TouchMode.UNKNOWN) {
|
||||
if (Math.abs(deltaX) > 70 || Math.abs(deltaY) > 50) {
|
||||
if (Math.abs(deltaX) > 100 || Math.abs(deltaY) > 50) {
|
||||
if (Math.abs(deltaX) >= Math.abs(deltaY))
|
||||
mMode = TouchMode.REMOVE;
|
||||
if (Math.abs(deltaX) < Math.abs(deltaY) && mDownX < SWAP_OFFSET)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue