Home | History | Annotate | Download | only in launcher2

Lines Matching refs:child

127         for (AppWidgetResizeFrame child: mResizeFrames) {
128 child.getHitRect(hitRect);
130 if (child.beginResizeIfPointInRegion(x - child.getLeft(), y - child.getTop())) {
131 mCurrentResizeFrame = child;
226 public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) {
229 if (child == currentFolder) {
230 return super.onRequestSendAccessibilityEvent(child, event);
236 return super.onRequestSendAccessibilityEvent(child, event);
243 // Only add the folder as a child for accessibility when it is open
306 public float getLocationInDragLayer(View child, int[] loc) {
309 return getDescendantCoordRelativeToSelf(child, loc);
411 View child = getChildAt(i);
412 final FrameLayout.LayoutParams flp = (FrameLayout.LayoutParams) child.getLayoutParams();
416 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height);
454 child) {
455 animateViewIntoPosition(dragView, child, null);
470 public void animateViewIntoPosition(DragView dragView, final View child,
472 animateViewIntoPosition(dragView, child, -1, onFinishAnimationRunnable, null);
475 public void animateViewIntoPosition(DragView dragView, final View child, int duration,
477 ShortcutAndWidgetContainer parentChildren = (ShortcutAndWidgetContainer) child.getParent();
478 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
479 parentChildren.measureChild(child);
485 float childScale = child.getScaleX();
486 coord[0] = lp.x + (int) (child.getMeasuredWidth() * (1 - childScale) / 2);
487 coord[1] = lp.y + (int) (child.getMeasuredHeight() * (1 - childScale) / 2);
489 // Since the child hasn't necessarily been laid out, we force the lp to be updated with
491 float scale = getDescendantCoordRelativeToSelf((View) child.getParent(), coord);
492 // We need to account for the scale of the child itself, as the above only accounts for
497 if (child instanceof TextView) {
498 TextView tv = (TextView) child;
500 // The child may be scaled (always about the center of the view) so to account for it,
502 // the drag view about the scaled child view.
505 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
506 } else if (child instanceof FolderIcon) {
511 toX -= (dragView.getMeasuredWidth() - Math.round(scale * child.getMeasuredWidth())) / 2;
513 toY -= (Math.round(scale * (dragView.getHeight() - child.getMeasuredHeight()))) / 2;
515 - child.getMeasuredWidth()))) / 2;
520 child.setVisibility(INVISIBLE);
523 child.setVisibility(VISIBLE);
548 * doesn't need to be a child of DragLayer.
719 public void onChildViewAdded(View parent, View child) {
724 public void onChildViewRemoved(View parent, View child) {