3

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

Note: without using xml design

BenMorel
  • 31,815
  • 47
  • 169
  • 296
Alex
  • 15,785
  • 7
  • 21
  • 19

1 Answers1

1

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

viv
  • 6,118
  • 5
  • 34
  • 53
  • 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