Got it.. TabHost tabHost = new TabHost(SampleTab.this); TabWidget tabW = new TabWidget(this); FrameLayout frame = new FrameLayout(this); frame.setId(android.R.id.tabcontent); tabW.addView(frame); tabW.setId(android.R.id.tabs); tabHost.addView(tabW); tabHost.setup(); tabHost.addTab(tabHost.newTabSpec("Tab1").setIndicator("Tab1") .setContent(this)); tabHost.addTab(tabHost.newTabSpec("Tab2").setIndicator("Tab2") .setContent(this)); setContentView(tabHost);
I need to add TabWidget to tabHost, also FrameLayout to tabWidget with correct Ids.. Nithin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en