Lines Matching defs:to
10 * Unless required by applicable law or agreed to in writing, software
59 /** The paint applied to the drag view on hover */
92 // We do not set the drawable in the xml as that inflates two drawables corresponding to
222 * On drop animate the dropView to the icon.
232 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(),
234 final float scale = (float) to.width() / from.width();
245 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f,
269 // Find the rect to animate to (the view is center aligned)
270 Rect to = new Rect();
271 dragLayer.getViewRectRelativeToSelf(this, to);
280 right = to.right - getPaddingRight();
283 left = to.left + getPaddingLeft();
287 final int top = to.top + (getMeasuredHeight() - height) / 2;
290 to.set(left, top, right, bottom);
295 to.offset(xOffset, yOffset);
297 return to;