I need sample code to create TabHost in android. can anyone help me.
+3
A:
The Android Developer site has an excellent fully worked code sample for creating tabs in Android using the TabWidget
and TabHost
.
Check out Hello, TabWidget.
Reto Meier
2009-06-05 06:37:55
what drives me nuts about their examples? That they don't contain all the information necessary. Take the line 'mTabHost = getTabHost();' for example - there is no prior reference to or description of 'mTabHost'. And, their other tab example has typo's that stop it from compiling. And, when it's compiled, it 'core dumps'.
KevinDTimm
2010-02-05 17:49:57
A:
The answers to this question list all the issues with the sample code, and the workarounds that people have found.
cdonner
2010-05-19 20:44:48