Lines Matching defs:child
120 for (AppWidgetResizeFrame child: mResizeFrames) {
121 child.getHitRect(hitRect);
123 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) {
124 mCurrentResizeFrame = child;
266 public void getLocationInDragLayer(View child, int[] loc) {
269 getDescendantCoordRelativeToSelf(child, loc);
369 View child = getChildAt(i);
370 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child.getLayoutParams();
374 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height);
411 public void animateViewIntoPosition(DragView dragView, final View child) {
412 animateViewIntoPosition(dragView, child, null);
426 public void animateViewIntoPosition(DragView dragView, final View child,
428 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable);
431 public void animateViewIntoPosition(DragView dragView, final View child, int duration,
433 ((CellLayoutChildren) child.getParent()).measureChild(child);
434 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
442 // Since the child hasn't necessarily been laid out, we force the lp to be updated with
444 float scale = getDescendantCoordRelativeToSelf((View) child.getParent(), coord);
447 if (child instanceof TextView) {
448 TextView tv = (TextView) child;
455 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
456 } else if (child instanceof FolderIcon) {
460 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
462 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2;
464 - child.getMeasuredWidth()))) / 2;
469 child.setVisibility(INVISIBLE);
470 child.setAlpha(0);
473 child.setVisibility(VISIBLE);
474 ObjectAnimator oa = ObjectAnimator.ofFloat(child, "alpha", 0f, 1f);
504 * doesn't need to be a child of DragLayer.
615 protected void onViewAdded(View child) {
616 super.onViewAdded(child);
621 protected void onViewRemoved(View child) {
622 super.onViewRemoved(child);