method:TabHost ( Context context )
return type:TabHost
content:ใช้สร้าง Object TabHost
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
TabHost tab_host = new TabHost ( this );
tab_host.setup();
TabHost.TabSpec tab_spec = tab_host.newTabSpec ( "tag_one" );
Button button = new Button ( this );
tab_spec.setContent ( button.getId ( ) );
tab_spec.setIndicator( "TestButton" );
tab_host.addTab ( tab_spec );
setContentView ( tab_host );
}
}