Home | History | Annotate | Download | only in versions

Lines Matching full:drag

201 <h3>Drag and drop</h3>
203 <p>New APIs simplify drag and drop operations in your application's user interface. A drag
205 object&mdash;from one place to another. The start and end point for the drag operation is a {@link
206 android.view.View}, so the APIs that directly handle the drag and drop operations are
209 <p>A drag and drop operation has a lifecycle that's defined by several drag actions&mdash;each
212 {@link android.view.DragEvent#ACTION_DROP}. Each view that wants to participate in a drag
217 the data to drag, a {@link android.view.View.DragShadowBuilder} to facilitate the "shadow"
219 information about the drag object with views that may receive the object.</p>
221 <p>To accept a drag object in a {@link android.view.View} (receive the "drop"), register the view
223 android.view.View#setOnDragListener setOnDragListener()}. When a drag event occurs on the view, the
226 describing the type of drag action has occurred (such as {@link
228 {@link android.view.DragEvent#ACTION_DROP}). During a drag, the system repeatedly calls {@link
229 android.view.View.OnDragListener#onDrag onDrag()} for the view underneath the drag, to deliver a
230 stream of drag events. The receiving view can inquire the event type delivered to {@link
234 <p class="note"><strong>Note:</strong> Although a drag event may carry a {@link
235 android.content.ClipData} object, this is not related to the system clipboard. A drag and drop
238 <p>For more information, read the <a href="{@docRoot}guide/topics/ui/drag-drop.html">Dragging and
239 Dropping</a> documentation. You can also see an implementation of drag and drop in the <a
864 on-screen cursor. Such input systems support basic touch events like click down, click up, and drag.