HomeSort by relevance Sort by last modified time
    Searched refs:DragView (Results 1 - 18 of 18) sorted by null

  /packages/apps/Launcher3/src/com/android/launcher3/util/
FlingAnimation.java 11 import com.android.launcher3.DragView;
44 dragLayer.getViewRectRelativeToSelf(d.dragView, mFrom);
46 float scale = d.dragView.getScaleX();
47 float xOffset = ((scale - 1f) * d.dragView.getMeasuredWidth()) / 2f;
48 float yOffset = ((scale - 1f) * d.dragView.getMeasuredHeight()) / 2f;
98 final DragView dragView = (DragView) mDragLayer.getAnimatedView();
100 dragView.setTranslationX(time * mUX + mFrom.left + mAX * time * time / 2);
101 dragView.setTranslationY(time * mUY + mFrom.top + mAY * time * time / 2)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
DropTarget.java 49 public DragView dragView = null;
63 /** Defers removing the DragView from the DragLayer until after the drop animation. */
124 * @param dragView The DragView that's being dragged around on screen.
155 * @param dragView The DragView that's being dragged around on screen.
173 * @param dragView The DragView that's being dragged around on screen.
DragView.java 35 public class DragView extends View {
66 public DragView(Launcher launcher, Bitmap bitmap, int registrationX, int registrationY,
291 mDragLayer.removeView(DragView.this);
DeleteDropTarget.java 200 d.dragView.setColor(mHoverColor);
207 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
208 Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(),
221 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f,
268 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(),
271 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
295 final DragView dragView = (DragView) dragLayer.getAnimatedView()
    [all...]
DragLayer.java 66 private DragView mDropView = null;
454 public void animateViewIntoPosition(DragView dragView, final View child) {
455 animateViewIntoPosition(dragView, child, null);
458 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha,
462 getViewRectRelativeToSelf(dragView, r);
466 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY,
470 public void animateViewIntoPosition(DragView dragView, final View child
    [all...]
DragController.java 96 /** The window token used as the parent for the DragView. */
246 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX,
250 dragView.setDragVisualizeOffset(new Point(dragOffset));
253 dragView.setDragRegion(new Rect(dragRegion));
256 dragView.show(mMotionDownX, mMotionDownY);
358 if (mDragObject.dragView != null) {
361 mDragObject.dragView.remove()
    [all...]
FolderIcon.java 322 final ShortcutInfo srcInfo, final DragView srcView, Rect dstRect,
335 // This will animate the dragView (srcView) into the new folder
358 private void onDrop(final ShortcutInfo item, DragView animateView, Rect finalRect,
364 // Typically, the animateView corresponds to the DragView; however, if this is being done
427 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
Workspace.java     [all...]
Folder.java 623 float[] r = getDragViewVisualCenter(d.x, d.y, d.xOffset, d.yOffset, d.dragView, null);
639 // This is used to compute the visual center of the dragView. The idea is that
643 DragView dragView, float[] recycle) {
653 // top, as the dragRect is in that case taken to be the entire dragView.
659 res[0] = left + dragView.getDragRegion().width() / 2;
660 res[1] = top + dragView.getDragRegion().height() / 2;
    [all...]
Launcher.java 754 (DragView) mDragLayer.getAnimatedView(), onCompleteRunnable,
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
DropTarget.java 49 public DragView dragView = null;
66 /** Defers removing the DragView from the DragLayer until after the drop animation. */
75 * This is used to compute the visual center of the dragView. This point is then
85 // top, as the dragRect is in that case taken to be the entire dragView.
91 res[0] = left + dragView.getDragRegion().width() / 2;
92 res[1] = top + dragView.getDragRegion().height() / 2;
115 * @param dragView The DragView that's being dragged around on screen.
145 * @param dragView The DragView that's being dragged around on screen
    [all...]
ButtonDropTarget.java 116 d.dragView.setColor(mHoverColor);
123 DragView.setColorScale(mHoverColor, mCurrentFilter);
154 mCurrentColorAnim.setDuration(DragView.COLOR_CHANGE_DURATION);
162 DragView.setColorScale(getTextColor(), mSrcFilter);
163 DragView.setColorScale(targetColor, mDstFilter);
184 d.dragView.setColor(0);
188 d.dragView.setColor(mHoverColor);
228 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
232 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight()
    [all...]
DragView.java 40 public class DragView extends View {
80 public DragView(Launcher launcher, Bitmap bitmap, int registrationX, int registrationY,
354 mDragLayer.removeView(DragView.this);
DragLayer.java 73 @Thunk DragView mDropView = null;
554 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha,
558 getViewRectRelativeToSelf(dragView, r);
562 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY,
566 public void animateViewIntoPosition(DragView dragView, final View child,
568 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, anchorView);
571 public void animateViewIntoPosition(DragView dragView, final View child, int duration
    [all...]
DragController.java 102 /** The window token used as the parent for the DragView. */
213 public DragView startDrag(Bitmap b, int dragLayerX, int dragLayerY,
242 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX,
254 mDragObject.stateAnnouncer = DragViewStateAnnouncer.createFor(dragView);
261 dragView.setDragVisualizeOffset(new Point(dragOffset));
264 dragView.setDragRegion(new Rect(dragRegion));
268 dragView.show(mMotionDownX, mMotionDownY)
    [all...]
FolderIcon.java 383 final ShortcutInfo srcInfo, final DragView srcView, Rect dstRect,
396 // This will animate the dragView (srcView) into the new folder
420 private void onDrop(final ShortcutInfo item, DragView animateView, Rect finalRect,
426 // Typically, the animateView corresponds to the DragView; however, if this is being done
489 onDrop(item, d.dragView, null, 1.0f, mInfo.contents.size(), d.postAnimationRunnable, d);
Workspace.java     [all...]
Launcher.java     [all...]

Completed in 1447 milliseconds