androidtabactivity

Is using TabActivity for tabs in android still okay/advisable?


I have used tab activity with tabhost in my application. But after discovering about other ways to go about forming tabs,i was wondering if using tabactivity is the wise choice for the application. I am new to android and curious to know if there are better ways to achieve non-swipeable tabs(without actionbar).


Solution

  • It would be best to use TabLayout included in the support design library release and follow the material design specs. That's pretty standard and accepted way now. If you want to have non swipeable tabs, you can disable swipe as described here.