OSDN Git Service

Introduce an OnDragListener mechanism
authorChris Tate <ctate@google.com>
Mon, 18 Oct 2010 22:29:21 +0000 (15:29 -0700)
committerChris Tate <ctate@google.com>
Tue, 19 Oct 2010 20:56:17 +0000 (13:56 -0700)
commit32affef4f86961c57d9ba14572ec65dc2a5451de
tree9c91b330da7219a2dc79de6aa56e4581e42f74c2
parent5931b1f415fdb30f429fb39238c63f7533335998
Introduce an OnDragListener mechanism

If the listener's onDrag(view, event) returns 'false', the view's own
onDragEvent() will be called.  If the listener returns 'true', it
consumes the event (and declares that it will handle the rest of the
drag event sequence, in the case of DRAG_STARTED actions).

Change-Id: I01aff0e4f59f71e55f5eea1049905c80714f0607
api/current.xml
core/java/android/view/View.java
core/java/android/view/ViewGroup.java