Home » Android » android – Whats is the difference between actionbar and tabhost/tabactivity

android – Whats is the difference between actionbar and tabhost/tabactivity

Posted by: admin June 15, 2020 Leave a comment

Questions:

Quick question, Whats the difference between actionbar and tabhost. I used to use tabhost and add tabs to it.

Then I was asked to use actionbar and reading about it, it seems it is just another way of having tabs. So when would use each? Whats the difference

Thank you

How to&Answers:

Pretty simple: ActionBar is the replacement of TabHost since Android 3.0.

Moreover, ActionBar can do more things than TabHost (like logo as a button, spinners, actions buttons…).

Have a look to ActionBar documentation on Android design guidelines.