Home
last modified time | relevance | path

Searched refs:drag (Results 1 – 25 of 50) 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/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java181 float drag = mSGD.getFocusY() - mInitialTouchFocusY; in updateExpansion() local
182 drag *= USE_DRAG ? 1f : 0f; in updateExpansion()
183 drag *= mGravity == Gravity.BOTTOM ? -1f : 1f; in updateExpansion()
184 float pull = Math.abs(drag) + Math.abs(span) + 1f; in updateExpansion()
185 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/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
DItemTouchHelperTest.java445 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
516 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
543 drag(test, fromX, toX, fromY, fromY, Math.max(10, Math.abs(deltaX) / 10)); in dragViewToX()
569 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY()
585 public static void drag(InstrumentationTestCase test, float fromX, float toX, float fromY, in drag() method in ItemTouchHelperTest.TouchUtils
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/tools/promote/
Ddevice-art.jd43 produced no drag feedback image in Chrome 28. -->
87 .device-list li.drag-hover .thumb-container img {
283 // Set up Chrome drag-out
384 // Set up drag and drop.
387 $(this).addClass('drag-hover');
392 $(this).removeClass('drag-hover');
396 $(this).removeClass('drag-hover');
595 * Loads the first valid image from a FileList (e.g. drag + drop source), as a data URI. This
/frameworks/base/docs/html/distribute/tools/promote/
Ddevice-art.jd36 <p>Customize the generated image and drag it to your desktop to save.</p>
53 produced no drag feedback image in Chrome 28. -->
100 .device-list li.drag-hover .thumb-container img {
342 // Set up Chrome drag-out
455 // Set up drag and drop.
458 $(this).addClass('drag-hover');
463 $(this).removeClass('drag-hover');
467 $(this).removeClass('drag-hover');
719 * 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…
/frameworks/base/cmds/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.jd78 <p>Android Studio offers an advanced layout editor that allows you to drag-and-drop widgets
92 widgets available to drag-and-drop by clicking <strong>Palette</strong> on the left side of the
/frameworks/base/docs/html/training/wearables/watch-faces/
Dinteracting.jd62 reserves gestures such as drag and long-press for system UI elements.
71 launch a UI when this event triggers. Launching a UI prevents drag events from opening the app
/frameworks/base/docs/html/tools/help/
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>
Dadt.jd130 <dd>Edit and design your XML layout files with a drag and drop interface. The layout editor
238 you can drag onto the canvas. The palette shows rendered previews of the
266 <p>The canvas is the area where you can drag and drop UI widgets from the palette to design your
269 the <a href="#configuration-chooser">configuration chooser</a>. You can also drag and drop
339 <li>Preview drag and drop location: When you drag and drop a UI widget onto the canvas, ruler
376 <p>The palette contains the UI widgets that you can drag and drop onto the canvas and add to your
/frameworks/base/docs/html/ndk/samples/
Dsample_teapot.jd239 gestures, such as pinch-and-drag, and sends a notification when triggered by
258 //Handle drag state
267 // ...else other possible drag states...
/frameworks/base/docs/html/design/patterns/
Dconfirming-acknowledging.jd66 …ation is unnecessary</strong>. This is a deliberate action: the user must drag and drop an item on…
Dnew.jd101 <strong>double touch drag</strong> and <strong>double touch</strong>. These
/frameworks/base/docs/html/training/graphics/opengl/
Dtouch.jd159 <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/base/docs/html/tools/performance/hierarchy-viewer/
Dindex.jd250 <li>In the <b>Tree View</b>, you can drag and zoom the tree using your mouse.</li>

12