Code example for View

Methods: layout

0
 
	} 
 
	private void setChildFrame(View child, int left, int top, int width,
			int height) {
		child.layout(left, top, left + width, top + height);
	} 
 
	/** 
	 * Checks this {@link ViewGroup}'s children and keeps the ones that fit inside it. 
	 */ 
	private void keepFittingChildren() { 
		View child = null;
		int childrenToDraw = 0;
		int sumWidth = 0;
		int index = this.getChildCount() - 1;
 
		do { 
			child = this.getChildAt(index);
			sumWidth += child.getMeasuredWidth();
			childrenToDraw++;