method:setContent ( int viewId )
return type:void
content:ใช้กำหนด id ของ Object View ที่ต้องการให้อยู่ภายใน Object TabSpec นี้
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 );
String tag = tab_spec.getTag ( );
setContentView ( tab_host );
}
}