Lines Matching refs:child
594 final View child = getChildAt(i);
595 child.cancelLongPress();
615 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params,
620 if (child instanceof BubbleTextView) {
621 BubbleTextView bubbleChild = (BubbleTextView) child;
631 child.setScaleX(getChildrenScale());
632 child.setScaleY(getChildrenScale());
642 child.setId(childId);
644 mShortcutsAndWidgets.addView(child, index, lp);
646 if (markCells) markCellsAsOccupiedForView(child);
720 final View child = mShortcutsAndWidgets.getChildAt(i);
721 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
723 if ((child.getVisibility() == VISIBLE || child.getAnimation() != null) &&
725 child.getHitRect(frame);
727 float scale = child.getScaleX();
728 frame = new Rect(child.getLeft(), child.getTop(), child.getRight(),
729 child.getBottom());
730 // The child hit rect is relative to the CellLayoutChildren parent, so we need to
738 cellInfo.cell = child;
1017 View child = getChildAt(i);
1022 child.measure(childWidthMeasureSpec, childheightMeasureSpec);
1031 View child = getChildAt(i);
1032 child.layout(getPaddingLeft(), getPaddingTop(),
1095 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
1103 if (clc.indexOfChild(child) != -1) {
1104 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
1105 final ItemInfo info = (ItemInfo) child.getTag();
1141 ValueAnimator va = LauncherAnimUtils.ofFloat(child, 0f, 1f);
1151 child.requestLayout();
1162 child.requestLayout();
2094 for (View child: solution.map.keySet()) {
2095 if (child == ignoreView) continue;
2096 CellAndSpan c = solution.map.get(child);
2097 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2103 mIntersectingViews.add(child);
2198 View child = mShortcutsAndWidgets.getChildAt(i);
2199 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2206 solution.add(child, c);
2219 View child = mShortcutsAndWidgets.getChildAt(i);
2220 if (child == dragView) continue;
2221 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2222 CellAndSpan c = solution.map.get(child);
2247 View child = mShortcutsAndWidgets.getChildAt(i);
2248 if (child == dragView) continue;
2249 CellAndSpan c = solution.map.get(child);
2251 animateChildToPosition(child, c.x, c.y, REORDER_ANIMATION_DURATION, 0,
2266 View child = mShortcutsAndWidgets.getChildAt(i);
2267 if (child == dragView) continue;
2268 CellAndSpan c = solution.map.get(child);
2269 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2271 ReorderHintAnimation rha = new ReorderHintAnimation(child, lp.cellX, lp.cellY,
2281 View child;
2291 public ReorderHintAnimation(View child, int cellX0, int cellY0, int cellX1, int cellY1,
2317 initDeltaX = child.getTranslationX();
2318 initDeltaY = child.getTranslationY();
2319 finalScale = getChildrenScale() - 4.0f / child.getWidth();
2320 initScale = child.getScaleX();
2321 this.child = child;
2325 if (mShakeAnimators.containsKey(child)) {
2326 ReorderHintAnimation oldAnimation = mShakeAnimators.get(child);
2328 mShakeAnimators.remove(child);
2337 ValueAnimator va = LauncherAnimUtils.ofFloat(child, 0f, 1f);
2349 child.setTranslationX(x);
2350 child.setTranslationY(y);
2352 child.setScaleX(s);
2353 child.setScaleY(s);
2364 mShakeAnimators.put(child, this);
2382 LauncherAnimUtils.ofFloat(child, "scaleX", getChildrenScale()),
2383 LauncherAnimUtils.ofFloat(child, "scaleY", getChildrenScale()),
2384 LauncherAnimUtils.ofFloat(child, "translationX", 0f),
2385 LauncherAnimUtils.ofFloat(child, "translationY", 0f)
2408 View child = mShortcutsAndWidgets.getChildAt(i);
2409 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2410 ItemInfo info = (ItemInfo) child.getTag();
2454 public void prepareChildForDrag(View child) {
2455 markCellsAsUnoccupiedForView(child);
2515 View child = mShortcutsAndWidgets.getChildAt(i);
2516 if (child == dragView) continue;
2517 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2520 mIntersectingViews.add(child);
2540 View child = mShortcutsAndWidgets.getChildAt(i);
2541 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2545 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2941 * Mark a child as having been dropped.
2942 * At the beginning of the drag operation, the child may have been on another
2945 * @param child The child that is being dropped
2947 void onDropChild(View child) {
2948 if (child != null) {
2949 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2951 child.requestLayout();