Home
last modified time | relevance | path

Searched refs:drag (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/docs/html/guide/topics/ui/
Ddrag-drop.jd28 <a href="#DragDropLifecycle">The drag/drop process</a>
31 … <a href="#AboutDragListeners">The drag event listener and callback method</a>
38 The drag shadow</a>
46 <a href="#StartDrag">Starting a drag</a>
49 <a href="#HandleStart">Responding to a drag start</a>
52 <a href="#HandleDuring">Handling events during the drag</a>
58 <a href="#HandleEnd">Responding to a drag end</a>
61 <a href="#RespondEventSample">Responding to drag events: an example</a>
115 With the Android drag/drop framework, you can allow your users to move data
116 from one View to another View in the current layout using a graphical drag and drop gesture.
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java50 drag(vt, 100, 200, 100, 200, 10, t, 300); in testClear()
65 drag(vt, 100, 200, 100, 200, 15, t, 400, new AccelerateInterpolator()); in testDragAcceleration()
76 drag(vt, 100, 200, 100, 200, 15, t, 400, new DecelerateInterpolator()); in testDragDeceleration()
88 drag(vt, 100, 200, 200, 200, 15, t, 400); in testDragLinearHorizontal()
100 drag(vt, 200, 200, 100, 200, 15, t, 400); in testDragLinearVertical()
116 drag(vt, 100, 200, 100, 200, 2, t, 100); in testDragWith2Points()
131 drag(vt, 100, 200, 100, 200, 10, t, 400); // 10 steps over 400ms in testStabilityInNbPoints()
136 drag(vt, 100, 200, 100, 200, 20, t, 400); // 20 steps over 400ms in testStabilityInNbPoints()
153 drag(vt, 100, 200, 100, 200, 10, t, 400); in testStabilityInTime()
158 drag(vt, 100, 200, 100, 200, 10, t + 3600*1000, 400); // on hour later in testStabilityInTime()
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java64 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenDown()
94 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenUp()
231 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom()
474 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
569 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
621 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
668 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX()
715 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY()
736 public static void drag(ActivityInstrumentationTestCase test, float fromX, float toX, in drag() method in TouchUtils
738 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount); in drag()
[all …]
/frameworks/base/docs/html/design/patterns/
Dgestures.jd37 <h4>Swipe or drag</h4>
56 <h4>Long press drag</h4>
81 <h4>Double touch drag</h4>
86 <p>A single touch followed in quick succession by a drag up or down:</p>
90 <li>Reversing drag direction reverses scaling.</li>
Dconfirming-acknowledging.jd66 …ation is unnecessary</strong>. This is a deliberate action: the user must drag and drop an item on…
Dnew.jd100 <strong>double touch drag</strong> and <strong>double touch</strong>. These
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java193 float drag = mSGD.getFocusY() - mInitialTouchFocusY; in updateExpansion() local
194 drag *= USE_DRAG ? 1f : 0f; in updateExpansion()
195 drag *= mGravity == Gravity.BOTTOM ? -1f : 1f; in updateExpansion()
196 float pull = Math.abs(drag) + Math.abs(span) + 1f; in updateExpansion()
197 float hand = drag * Math.abs(drag) / pull + span * Math.abs(span) / pull; in updateExpansion()
/frameworks/base/docs/html/training/gestures/
Dscale.jd17 <li><a href="#drag">Drag an Object</a></li>
45 <p>This lesson describes how to use touch gestures to drag and scale on-screen
50 <h2 id="drag">Drag an Object</h2>
52 <p class="note">If you are targeting Android 3.0 or higher, you can use the built-in drag-and-drop …
54 <a href="{@docRoot}guide/topics/ui/drag-drop.html">Drag and Drop</a>.
56 <p>A common operation for a touch gesture is to use it to drag an object across
57 the screen. The following snippet lets the user drag an on-screen image. Note
62 <li>In a drag (or scroll) operation, the app has to keep track of the original pointer
90 <p>The following snippet enables a user to drag an object around on the screen. It records the init…
Dviewgroup.jd79 {@code MyViewGroup} contains multiple child views. If you drag your finger across
/frameworks/base/docs/html/distribute/tools/promote/
Ddevice-art.jd36 <p>Customize the generated image and drag it to your desktop to save.</p>
47 produced no drag feedback image in Chrome 28. -->
94 .device-list li.drag-hover .thumb-container img {
305 // Set up Chrome drag-out
406 // Set up drag and drop.
409 $(this).addClass('drag-hover');
414 $(this).removeClass('drag-hover');
418 $(this).removeClass('drag-hover');
617 * Loads the first valid image from a FileList (e.g. drag + drop source), as a data URI. This
/frameworks/base/docs/html/about/versions/
Dandroid-3.0.jd203 <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
[all …]
Dandroid-3.1-highlights.jd121 screen widgets using drag bars provided by the system. Users can expand widgets
140 point, select, drag, scroll, hover, and other standard actions.</p>
Dandroid-3.0-highlights.jd208 <p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Multiselect, clipboard, and drag-and-drop…
210 … it easier for users to manage and organize files, developers can now add drag-and-drop interactio…
Dandroid-1.1.jd153 touch and drag it. </li>
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java438 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) {
453 if (drag)
465 if (drag)
DUiDevice.java448 public boolean drag(int startX, int startY, int endX, int endY, int steps) { in drag() method in UiDevice
/frameworks/base/docs/html/sdk/installing/
Dstudio-layout.jd26 <p>Android Studio offers an advanced layout editor that allows you to drag-and-drop widgets
118 hide the widgets available to drag-and-drop by clicking <strong>Palette</strong> on the
123 <p>When you drag a widget into the graphical layout for your app, the display changes to
Dstudio-tips.jd96 <p>Android Studio offers an advanced layout editor that allows you to drag-and-drop widgets
108 widgets available to drag-and-drop by clicking <strong>Palette</strong> on the
/frameworks/base/docs/html/tools/help/
Dadt.jd75 user interfaces with a drag and drop interface.</dd>
162 <dd>Edit and design your XML layout files with a drag and drop interface. The layout editor
270 you can drag onto the canvas. The palette shows rendered previews of the
298 <p>The canvas is the area where you can drag and drop UI widgets from the palette to design your
301 the <a href="#configuration-chooser">configuration chooser</a>. You can also drag and drop
371 <li>Preview drag and drop location: When you drag and drop a UI widget onto the canvas, ruler
408 <p>The palette contains the UI widgets that you can drag and drop onto the canvas and add to your
DMonkeyDevice.jd107 <a href="#drag">drag</a>
115 Simulates a drag gesture (touch, hold, and move) on this device's screen.
549 <A NAME="drag"></A>
555 <span class="sympad">drag</span>
568 Simulates a drag gesture (touch, hold, and move) on this device's screen.
577 The starting point of the drag gesture, in the form of a <em>tuple</em>
584 The end point of the drag gesture, in the form of a <em>tuple</em> (x,y)
590 <td>The duration of the drag gesture in seconds. The default is 1.0 seconds.</td>
/frameworks/base/docs/html/tools/
Dindex.jd37 <li>Build rich Android UI with drag and drop.
/frameworks/base/docs/html/training/graphics/opengl/
Dtouch.jd145 <p>When you have completed the steps described above, run the program and drag your finger over the
/frameworks/base/docs/html/design/handhelds/
Dindex.jd44 <p>Users can drag an app or widget icon from the All Apps screen and place it in any empty location…
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java211 drag(mRecyclerView, 0, 0, 0, 500, 5); in testScrollStateDrag()
217 public void drag(ViewGroup view, float fromX, float toX, float fromY, float toY, in drag() method in RecyclerViewLayoutTest
/frameworks/base/docs/html/tools/debugging/
Ddebugging-ui.jd140 visible, click and drag the pane.
171 You can also use Tree Overview to move around in the Tree View pane. Click and drag

12