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

115 Views Asked by At

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).

1

There are 1 best solutions below

6
random On BEST ANSWER

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.