[英]ActionBar - Android Tablet 2.3 and 4.0
Am working on a Android application that target tablets running both 2.3 and 4.0 so I need to support both these versions. 我正在开发针对运行2.3和4.0的平板电脑的Android应用程序,因此我需要同时支持这两个版本。
I found the support library to support fragments but how can I use ActionBar taken that its only available in Android 3.0+ and not in 2.3? 我发现支持库支持片段,但是如何使用ActionBar,它只能在Android 3.0+中使用而不能在2.3中使用?
Thanks 谢谢
Use ActionBarSherlock . 使用ActionBarSherlock 。 It requires very little work on your part and is well maintained.
它只需要你很少的工作并且维护得很好。
Also see: What is the equivalent of ActionBar in earlier sdk versions? 另请参阅: 早期sdk版本中ActionBar的等价物是什么?
Now, you can also use ActionBarCompat library from Android Support package. 现在,您还可以使用Android支持包中的ActionBarCompat库。 It's v7 version now supports ActionBar .
它的v7版本现在支持ActionBar 。 Android dev team published a really useful introduction video video about using ActionBarCompat
Android开发团队发布了一个关于使用ActionBarCompat的非常有用的介绍视频视频
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.