Tabhost Tabhost =Gettabhost (); Intent it=NewIntent (); It.setclass (Main. This, DateTimePicker.class); Tabspec Spec=tabhost.newtabspec ("Tab1"); Spec.setcontent (IT); Spec.setindicator ("ら Poke ㎝ Ding", Getresources (). Getdrawable (Android. R.drawable.ic_lock_idle_alarm)); Tabhost.addtab (spec); It=NewIntent (); It.setclass (Main. This, Progbardemo.class); Spec=tabhost.newtabspec ("TaB2"); Spec.setindicator ("ProgressBar", Getresources (). Getdrawable (Android. R.drawable.ic_dialog_alert)); Spec.setcontent (IT); Tabhost.addtab (spec); Tabhost.setcurrenttab (0); //settings ﹚tab Pong BangTabwidget Tabwidget =(Tabwidget) Tabhost.findviewbyid (Android. R.id.tabs); View Tabview= Tabwidget.getchildtabviewat (0); TextView Tab=(TextView) Tabview.findviewbyid (Android. R.id.title); Tab.settextsize (20); Tabview= Tabwidget.getchildtabviewat (1); tab=(TextView) Tabview.findviewbyid (Android. R.id.title); Tab.settextsize (20);
TAB TAB Interface---using Intent objects