I used TabActivity for tabs in my application. Now TabActivity is deprecated. So I googled and found that 'Fragment' is the replacement for the TabActivity to create a tabs. Can someone guide me to choose the right thing(Fragment or any other) to create a tabs..
Asked
Active
Viewed 1,862 times
2 Answers
1
Fragment is the best way to create a tab. If you want a sample you can create a new project in eclipse and choose the navigation type "swipe + tabs", it will create a simple application with three tabs. There are a lot of comments explaining the code and it's very easy to understand.

Francois Morier-Genoud
- 649
- 6
- 19
0
Use ActionBarSherlock + Fragments....For details check out...http://developer.android.com/guide/components/fragments.html and download the ABS from here..http://actionbarsherlock.com/ .....Tons of tutorials available like this one...Android Tab Action Bar