Difference between ActionBarSherlock and ActionBar Compatibility

后端 未结 7 1884
庸人自扰
庸人自扰 2020-11-28 00:39

What is the difference between ActionBarSherlock and Action Bar Compatibility

Fews days ago Google just released the ActionBar Compatibility that make me so confused

7条回答
  •  一向
    一向 (楼主)
    2020-11-28 01:01

    • I strongly believe that you should use ActionBarCompat for all new projects that want to support older devices.

    • It also might make sense to migrate existing projects. So read on to learn why you should migrate or use ActionBarCompat right away and how to migrate existing projects.

    Why you should prefer ActionBarCompat over ActionBarSherlock?

    There are many reasons why you should prefer ActionbarCompat over ActionbarSherlock.

    1. First of all this project is by Google, is part of the Support Library and thus likely will support new Action Bar related stuff at the same time Google releases them with stock Android.

    2. Another good reason is that it supports the Navigation Drawer pattern right out of the box, while ActionBarSherlock does not. Thus if you want to add this drawer to an existing project/app you should migrate.

    3. The last and Important is, that the creator of ActionBarSherlock, Jake Wharton, announced on Google+ that further development of ActionBarSherlock has been stopped. ActionBarSherlock 4.4 is the last release and might get bug fixes – but there won’t be any new features: So if new functionality is included in actionbar you may not keep up to it with actionbarsherlock.

提交回复
热议问题