Code example for RelativeLayout

Methods: setLayoutParams

0
	private void init() { 
		setHorizontalScrollBarEnabled(false);
		listPath = new ArrayList<TreeEntry>();
		int padding = UIUtils.dipToPx(4);
		setPadding(padding, padding, padding, padding);
		layBase = new RelativeLayout(getContext());
		layBase.setLayoutParams(new ViewGroup.LayoutParams(
				FrameLayout.LayoutParams.MATCH_PARENT,
				FrameLayout.LayoutParams.MATCH_PARENT));
		addView(layBase);
	} 
	 
	@Override 
	public void postInvalidate() { 
		super.postInvalidate(); 
		buildUI(); 
	} 
 
	private void buildUI() { 
		layBase.removeAllViews();
		int viewId = 300000;