Lines Matching defs:child
36 * Layout containing single child {@link View} which it attempts to center
39 * Updates drawable state to be {@link android.R.attr#state_first} when child is
40 * above target, and {@link android.R.attr#state_last} when child is below
41 * target. Also updates {@link Drawable#setLevel(int)} on child
103 final View child = mChild;
106 final int childWidth = child.getMeasuredWidth();
107 final int childHeight = child.getMeasuredHeight();
113 layoutChild(child, childLeft, childTop);
120 // when child is outside bounds, nudge back inside
124 layoutChild(child, clampedChildLeft, clampedChildTop);
138 private static void layoutChild(View child, int left, int top) {
139 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight());
193 // at this point, touch wasn't handled by child view; assume outside