Android: What's the difference between a title bar and an ActionBar

前端 未结 2 1648
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 20:09

I can\'t tell if they\'re the same thing or not and they seem to have different methods for removing them but I\'m not sure if those are just multiple methods to do the same thi

相关标签:
2条回答
  • 2021-02-12 20:39

    The Title bar is a small part of the UI that you can supply with some text and a color. You see it on a lot of Android 2.0 Apps. See here

    The Actionbar is the bar with buttons that has back navigation etc. If you can chose, you use it instead of the Titlebar. See here

    0 讨论(0)
  • 2021-02-12 20:55

    Different thing.

    TitleBar - small (usually grey) strip at top of screen that lists your Application Name (mostly not used anywhere)

    ActionBar - the core navigation component of modern Android apps - this is where you will put the main navigation components (including actions on the things in your activity, a title explaining where you are in the app, Share links, etc); To support this in all modern Android versions, you will need to use a library to implement this. ActionBarSherlock is a very popular one, and there is now ActionBarCompat, which was released in the latest Support Library.

    Bottom line, TitleBar should be disabled in favor of ActionBar for applications targeting modern design standards

    0 讨论(0)
提交回复
热议问题