Code example for TabWidget

Methods: setIdsetLayoutParams

0
	 * 
	 * @return the widget that holds the actual tabs. 
	 */ 
	private TabWidget createTabWidget(Activity activity)
	{ 
        TabWidget tabWidget = new TabWidget( activity );
        tabWidget.setId( android.R.id.tabs );
        LinearLayout.LayoutParams tabWidgetParams =
			new LinearLayout.LayoutParams(
        				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT );
        tabWidgetParams.weight = 0;
        tabWidget.setLayoutParams( tabWidgetParams );
 
        return tabWidget;
	} 
 
	public class TabChangeListener implements OnTabChangeListener
	{ 
 
		private int m_tabScreenHandle;
Stop searching for code, let great code find you!  Add Codota to your java IDE