Code example for RelativeLayout

Methods: getChildAt

0
	 * Disables all input so the computations can work quietly 
	 */ 
	private void disableInput() { 
		setOnTouchListener(null);
		setColorFilter(Color.GRAY, android.graphics.PorterDuff.Mode.LIGHTEN);
		Button button = (Button) parentLayout.getChildAt(1);
		button.setEnabled(false);
		button = (Button) parentLayout.getChildAt(2);
		button.setEnabled(false);
		button = (Button) parentLayout.getChildAt(3);
		button.setEnabled(false);
		button = (Button) parentLayout.getChildAt(4);
		button.setEnabled(false);
		button = (Button) parentLayout.getChildAt(5);
		button.setEnabled(false);
	} 
	 
	/** 
	 * Enables input after the computations are done and gets the current mask 
	 */