java - Inertial movement of drag and drop -


i'm working on drag , drop code, far works fine, need able recognize , act based on speed , direction of finger swipe (keep moving if finger up, aka adding inertia). better example of facebook chatheads:

enter image description here

i had use custom ontouchevent listener, , use velocitytracker determine distance of inerce movement. use translate animator , override onanimationend set actual view margins new place, , that's :)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -