什么是动作条在早期的SDK版本的相同呢? [英] What is the equivalent of ActionBar in earlier sdk versions?

查看:98
本文介绍了什么是动作条在早期的SDK版本的相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于动作条仅适用于Android的3.0和更高版本,什么是实现动作条般的小工具在早期的SDK版本的好办法?我期待这样做编程方式,有没有什么帮助。

Since the ActionBar is available only in Android 3.0 and later, what is a good way to implement ActionBar-like widget in earlier sdk versions? I am looking to do this programmatically, if that helps.

推荐答案

我已经创建了一个库, ActionBarSherlock 的,它是从Android扩展兼容库实现对本机操作栏所有的方式回到了Android 1.6的支持。

I have created a library, ActionBarSherlock, which is extended from the Android Compatibility Library to implement support for the native action bar all the way back to Android 1.6.

该库的主要特点是,它模仿的Andr​​oid 3.0+原生操作栏,并允许您向上穿过了当前最新的版本,3.1与它的主题也从1.6的所有版本的Andr​​oid进行交互。有在网站上的样品和文档高于该链接的应该给大家介绍一下它是如何工作是个好主意。

The key feature of this library is that it mimics the native action bar of Android 3.0+ and allows you to interact with it and theme it on all version of Android from 1.6 up through the current newest version, 3.1. There are samples and documentation on the website linked above which should give you a good idea about how it works.

您也可以看一下在GitHub的维基在图书馆的现实世界的应用实现​​页面

You can also look on the implementations page on the GitHub wiki for real world applications of the library.

这篇关于什么是动作条在早期的SDK版本的相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆