Code example for FrameLayout.LayoutParams

0
	} 
 
	private void attachToContainer(FrameLayout container) {
		if (mPie == null) {
			mPie = new PieMenu(mContext);
			LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT,
					LayoutParams.MATCH_PARENT);
			mPie.setLayoutParams(lp);
			populateMenu(); 
		} 
		container.addView(mPie);
	} 
 
	protected void removeFromContainer(FrameLayout container) {
		container.removeView(mPie);
	} 
 
	protected void forceToTop(FrameLayout container) {
		if (mPie.getParent() != null) {
			container.removeView(mPie);
			container.addView(mPie);