Code example for FrameLayout

Methods: setId, setLayoutParams

0
	 * 
	 * @return the widget that holds the content of a tab. 
	 */ 
	private FrameLayout createTabContent(Activity activity)
	{ 
		FrameLayout tabContent = new FrameLayout( activity );
        tabContent.setId( android.R.id.tabcontent );
        LinearLayout.LayoutParams tabContentParams = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, 0 );
        tabContentParams.weight = 1;
        tabContent.setLayoutParams( tabContentParams );
 
        return tabContent;
	} 
 
	/** 
	 * Creates the widget that holds the actual tabs. 
	 * 
	 * @param activity Activity to create the widgets in. 
	 * 
	 * @return the widget that holds the actual tabs. 
	 */