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:
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
Post a Comment