Home
last modified time | relevance | path

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

123

/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.java51 drag(vt, 100, 200, 100, 200, 10, t, 300); in testClear()
66 drag(vt, 100, 200, 100, 200, 15, t, 400, new AccelerateInterpolator()); in testDragAcceleration()
77 drag(vt, 100, 200, 100, 200, 15, t, 400, new DecelerateInterpolator()); in testDragDeceleration()
90 drag(vt, 100, 200, 200, 200, 15, t, 400); in testDragLinearHorizontal()
103 drag(vt, 200, 200, 100, 200, 15, t, 400); in testDragLinearVertical()
120 drag(vt, 100, 200, 100, 200, 2, t, 100); in testDragWith2Points()
136 drag(vt, 100, 200, 100, 200, 10, t, 400); // 10 steps over 400ms in testStabilityInNbPoints()
141 drag(vt, 100, 200, 100, 200, 20, t, 400); // 20 steps over 400ms in testStabilityInNbPoints()
158 drag(vt, 100, 200, 100, 200, 10, t, 400); in testStabilityInTime()
163 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.java70 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenDown()
100 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenUp()
237 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom()
480 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
627 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
674 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX()
721 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY()
742 public static void drag(ActivityInstrumentationTestCase test, float fromX, float toX, in drag() method in TouchUtils
744 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount); in drag()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTouchUtils.java180 drag(inst, x, x, fromY, toY, stepCount); in dragViewToTop()
229 drag(inst, fromX, toX, fromY, toY, calculateStepsForDistance(distance)); in dragViewTo()
244 drag(inst, fromX, toX, fromY, fromY, calculateStepsForDistance(deltaX)); in dragViewToX()
259 drag(inst, fromX, fromX, fromY, toY, calculateStepsForDistance(deltaY)); in dragViewToY()
265 public static void drag(Instrumentation inst, float fromX, float toX, float fromY, in drag() method in TouchUtils
/frameworks/base/docs/html/preview/features/
Dmulti-window.jd58 either side-by-side or one-above-the-other. The user can drag the dividing
90 activity title, they can drag that activity to a highlighted portion of the
101 Users can <a href="{@docRoot}guide/topics/ui/drag-drop.html">drag and
103 the screen. (Previously, users could only drag and drop data within a single
414 <h3 id="dnd">Supporting drag and drop</h3>
417 Users can <a href="{@docRoot}guide/topics/ui/drag-drop.html">drag and
419 sharing the screen. (Previously, users could only drag and drop data within a
420 single activity.) For this reason, you may want to add drag and drop
427 package to support cross-app drag and drop. For details on the following
448 enable cross-activity drag and drop, pass the new flag
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java184 float drag = mSGD.getFocusY() - mInitialTouchFocusY; in updateExpansion() local
185 drag *= USE_DRAG ? 1f : 0f; in updateExpansion()
186 drag *= mGravity == Gravity.BOTTOM ? -1f : 1f; in updateExpansion()
187 float pull = Math.abs(drag) + Math.abs(span) + 1f; in updateExpansion()
188 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…
/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 {
357 // Set up Chrome drag-out
470 // Set up drag and drop.
473 $(this).addClass('drag-hover');
478 $(this).removeClass('drag-hover');
482 $(this).removeClass('drag-hover');
734 * 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>
/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.java451 public boolean drag(int startX, int startY, int endX, int endY, int steps) { in drag() method in UiDevice
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/
Dmulti-window.jd95 使用者可以在活動分享螢幕時,將一個活動中的資料<a href="{@docRoot}guide/topics/ui/drag-drop.html">拖放</a>到另一個活動。
401 使用者可以在兩個活動分享螢幕時,將一個活動中的資料<a href="{@docRoot}guide/topics/ui/drag-drop.html">拖放</a>到另一個活動。
/frameworks/base/docs/html-intl/intl/ru/preview/features/
Dmulti-window.jd95 Пользователи могут <a href="{@docRoot}guide/topics/ui/drag-drop.html">перетаскивать</a>
401 Пользователи могут <a href="{@docRoot}guide/topics/ui/drag-drop.html">перетаскивать</a> данные
/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-intl/intl/ko/preview/features/
Dmulti-window.jd97 또 다른 액티비티로 데이터를 <a href="{@docRoot}guide/topics/ui/drag-drop.html">드래그 앤 드롭</a>할
409 액티비티가 화면을 공유하는 동안 한 액티비티에서 다른 액티비티로 데이터를 <a href="{@docRoot}guide/topics/ui/drag-drop.html">드래그 앤 드…
/frameworks/base/docs/html-intl/intl/ja/preview/features/
Dmulti-window.jd96 …ユーザーは、複数のアクティビティが画面を共有しているときに、データを 1 つのアクティビティから別のアクティビティに<a href="{@docRoot}guide/topics/ui/drag-…
408 …を共有しているときに、データを 1 つのアクティビティから別のアクティビティに<a href="{@docRoot}guide/topics/ui/drag-drop.html">ドラッグ&ドロッ…
/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-intl/intl/zh-cn/preview/features/
Dmulti-window.jd96 …用户可以在两个 Activity 共享屏幕的同时在这两个 Activity 之间<a href="{@docRoot}guide/topics/ui/drag-drop.html">拖放</a>数据
408 …用户可以在两个 Activity 共享屏幕的同时在这两个 Activity 之间<a href="{@docRoot}guide/topics/ui/drag-drop.html">拖放</a>数据
/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-intl/intl/in/preview/features/
Dmulti-window.jd96 Pengguna bisa <a href="{@docRoot}guide/topics/ui/drag-drop.html">seret dan
408 Pengguna bisa <a href="{@docRoot}guide/topics/ui/drag-drop.html">menyeret dan

123