Code example for FrameLayout.LayoutParams

0
		// Remove the previous ad layout (if any) 
		if (_adLayout != null) mainContainer.removeView(_adLayout);
		 
		// Create a new ad layout 
		_adLayout = new RelativeLayout(getActivity());
		mainContainer.addView(_adLayout, new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
		 
		return _adLayout;
	} 
	 
	public RelativeLayout getCurrentAdLayout()
	{ 
		return _adLayout;
	} 
	 
	 
	// User cookies 
	 
	public Map<String, String> getUserCookies()
	{ 
		if (_userCookies == null)