Lines Matching refs:child
464 View child = getChildAt(fra.mCellX, fra.mCellY);
466 if (child != null) {
469 child.getPaddingTop() + grid.folderBackgroundOffset;
501 View child = getChildAt(mFolderLeaveBehindCell[0], mFolderLeaveBehindCell[1]);
502 if (child != null) {
505 child.getPaddingTop() + grid.folderBackgroundOffset;
572 final View child = getChildAt(i);
573 child.cancelLongPress();
594 public boolean addViewToCellLayout(View child, int index, int childId, LayoutParams params,
599 if (child instanceof BubbleTextView) {
600 BubbleTextView bubbleChild = (BubbleTextView) child;
604 child.setScaleX(getChildrenScale());
605 child.setScaleY(getChildrenScale());
615 child.setId(childId);
617 mShortcutsAndWidgets.addView(child, index, lp);
619 if (markCells) markCellsAsOccupiedForView(child);
884 View child = getChildAt(i);
889 child.measure(childWidthMeasureSpec, childheightMeasureSpec);
890 maxWidth = Math.max(maxWidth, child.getMeasuredWidth());
891 maxHeight = Math.max(maxHeight, child.getMeasuredHeight());
908 View child = getChildAt(i);
909 child.layout(left, top,
973 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
981 if (clc.indexOfChild(child) != -1) {
982 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
983 final ItemInfo info = (ItemInfo) child.getTag();
1019 ValueAnimator va = LauncherAnimUtils.ofFloat(child, 0f, 1f);
1029 child.requestLayout();
1040 child.requestLayout();
1968 for (View child: solution.map.keySet()) {
1969 if (child == ignoreView) continue;
1970 CellAndSpan c = solution.map.get(child);
1971 LayoutParams lp = (LayoutParams) child.getLayoutParams();
1977 mIntersectingViews.add(child);
2075 View child = mShortcutsAndWidgets.getChildAt(i);
2076 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2083 solution.add(child, c);
2096 View child = mShortcutsAndWidgets.getChildAt(i);
2097 if (child == dragView) continue;
2098 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2099 CellAndSpan c = solution.map.get(child);
2124 View child = mShortcutsAndWidgets.getChildAt(i);
2125 if (child == dragView) continue;
2126 CellAndSpan c = solution.map.get(child);
2128 animateChildToPosition(child, c.x, c.y, REORDER_ANIMATION_DURATION, 0,
2145 View child = mShortcutsAndWidgets.getChildAt(i);
2146 if (child == dragView) continue;
2147 CellAndSpan c = solution.map.get(child);
2149 != null && !solution.intersectingViews.contains(child);
2151 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2153 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX,
2163 View child;
2180 public ReorderPreviewAnimation(View child, int mode, int cellX0, int cellY0, int cellX1,
2208 initDeltaX = child.getTranslationX();
2209 initDeltaY = child.getTranslationY();
2210 finalScale = getChildrenScale() - 4.0f / child.getWidth();
2211 initScale = child.getScaleX();
2212 this.child = child;
2216 if (mShakeAnimators.containsKey(child)) {
2217 ReorderPreviewAnimation oldAnimation = mShakeAnimators.get(child);
2219 mShakeAnimators.remove(child);
2228 ValueAnimator va = LauncherAnimUtils.ofFloat(child, 0f, 1f);
2241 child.setTranslationX(x);
2242 child.setTranslationY(y);
2244 child.setScaleX(s);
2245 child.setScaleY(s);
2257 mShakeAnimators.put(child, this);
2275 LauncherAnimUtils.ofFloat(child, "scaleX", getChildrenScale()),
2276 LauncherAnimUtils.ofFloat(child, "scaleY", getChildrenScale()),
2277 LauncherAnimUtils.ofFloat(child, "translationX", 0f),
2278 LauncherAnimUtils.ofFloat(child, "translationY", 0f)
2301 View child = mShortcutsAndWidgets.getChildAt(i);
2302 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2303 ItemInfo info = (ItemInfo) child.getTag();
2347 public void prepareChildForDrag(View child) {
2348 markCellsAsUnoccupiedForView(child);
2408 View child = mShortcutsAndWidgets.getChildAt(i);
2409 if (child == dragView) continue;
2410 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2413 mIntersectingViews.add(child);
2434 View child = mShortcutsAndWidgets.getChildAt(i);
2435 child.getLayoutParams();
2439 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2854 * Mark a child as having been dropped.
2855 * At the beginning of the drag operation, the child may have been on another
2858 * @param child The child that is being dropped
2860 void onDropChild(View child) {
2861 if (child != null) {
2862 LayoutParams lp = (LayoutParams) child.getLayoutParams();
2864 child.requestLayout();