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
In Android, TabHost is a Container for tabbed window view. This object holds two children one is set of tab labels that the user clicks to select a specific tab and other is a FrameLayout object that displays the content of that page.
TabHost consists of two children of which one is FrameLayout (which is used to show the contents of the activity) and another one is TabWidget.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With