drag and drop - Slide effect of element with finger on Android -


i trying find out best approach sliding effect of element on screen on android device.

i read drag , drop of elements, not sure correct approach or should go canvas.

or should use events ontouch, , enter logic move elements.

i looking solution make "sliding" smooth.

the thing want make moving of elements in matrix, simple slide. (for example, if slide on 50% of width of element, want element slide automatically new position).

thanks!

i found out should correct way of solving this.

i decided go swipe gestures , implement ongesturelistener , there found lot of interesting methods.

that class can found here: http://developer.android.com/reference/android/view/gesturedetector.html


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -