private void layoutChildren() { final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); layoutChild(child); } }
private void measureAndLayoutChild(View v) { int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.EXACTLY); int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.EXACTLY); measureChild(v, childWidthMeasureSpec, childHeightMeasureSpec); layoutChild(v); }