3

I need to create tab View at runtime by using java code .

Note: without using xml design

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Alex
  • 16,375
  • 7
  • 22
  • 19

1 Answers1

1

Create TabHost, TabWidget in XML and then add TAbHost.TabSpec at run time.

viv
  • 6,158
  • 6
  • 39
  • 54
  • Without using xml i need to create the tabview. – Alex Nov 09 '10 at 08:47
  • Try creating the same XML code in Java file, and then set the contentView to that. Then add tabhost dynamically.... It will be a bit lengthy process. But yes you can give it a try at least. – viv Nov 09 '10 at 09:09