问题描述
之间 ActionBarSherlock 和的
菲尤天前谷歌刚刚发布了动作条的兼容性,使我很困惑。那是在Action Bar兼容性工作一样ActionBarSherlock,是编码一样的吗?
Fews days ago Google just released the ActionBar Compatibility that make me so confused. Is that the Action Bar Compatibility works same as the ActionBarSherlock and is the coding same?
例:请问app图标导航向上的操作栏的兼容性支持或ActionBar.Tab?
Example : Does app icon to navigate "up" or ActionBar.Tab supported in Action Bar Compatibility ?
推荐答案
ActionBarSherlock给你的应用程序的操作栏,无论*是什么版本的Android API的您的应用程序正在运行。操作栏的兼容性让你的操作栏只有当你正在运行的设备API 3.0级或以上。
ActionBarSherlock gives your application an action bar regardless* of what version of the android API your app is being run on. Action Bar Compatibility gives you the action bar only if the device that you're running on is API level 3.0 or above.
*请注意,如果你正在运行的设备不是3.0或以上,ActionBarSherlock将使用它自己的自定义实现操作栏,不是本机的一个。
*Note that if the device you're running on isn't 3.0 or above, ActionBarSherlock is going to use it's own custom implementation of the action bar, not a native one.
- 编辑 -
这似乎事情已经改变,居然还有ActionBarSherlock和操作栏兼容性没有什么区别了。请阅读注释下面的详细资料。
It appears things have changed and there is actually no difference between ActionBarSherlock and the Action Bar Compatibility anymore. Please read the comments below for details.
- 编辑 -
现在有两种使用后,我可以说,我其实preFER ActionBarSherlock行动吧兼容性。 ActionBarSherlock是非常容易和很好用。
After having used both now, I can say that I actually prefer ActionBarSherlock to Action Bar Compatibility. ActionBarSherlock is really easy and nice to use.
- EDIT--正如LOG_TAG提到,现在在Android的支持库操作栏支持。我还没有使用它还有一个机会,但我想这是用最好的之一。
--EDIT--As LOG_TAG mentioned, there is now support for the action bar in the Android Support Library. I haven't had a chance to use it yet, but I would imagine that's the best one to use.
这篇关于ActionBarSherlock和动作条的兼容性的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!