Code example for LinearLayout

Methods: removeView, getParent

0
	 * <br> 
	 * Add number picker view to dialog. 
	 */ 
	@Override 
	protected View onCreateDialogView() {
		ViewParent parent = mPickerlayout.getParent();
		 
		if (parent != null) {
			((ViewGroup) parent).removeView(mPickerlayout);
		} 
		 
		return mPickerlayout;
	} 
	 
	/** 
	 * <i>Overridden for internal use!</i><br> 
	 * <br> 
	 * Set entered value by keyboard to number picker. 
	 */ 
	@Override 
	public void onClick(DialogInterface di, int which) {