ICS像机器人的previous版本微调 [英] ICS like spinner in previous versions of android

查看:79
本文介绍了ICS像机器人的previous版本微调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要微调看起来像在ICS中的Andr​​oid 2.2以上的所有previous版本。有没有你知道的任何项目或样品?我通过一个项目来 HoloEverywhere

I want to the spinner to look like as in ICS in all the previous versions of android above 2.2. Is there any project or samples you know ? I came through a project HoloEverywhere

但它包含了很多的变化,这让我的应用程序的规模巨大。所以,你知道,我可以使用任何简单的修改。自定义layut可以帮助我,但我怎么能得到ICS资源?

But it contains lot of change , which makes my application huge in size. So you know any simple changes that i can use. Custom layut can help me but how can i get the ICS resource ?

推荐答案

下载任何支持库,并在项目中包含构建路径

Download any support library and include in your project build path

然后,而不是微调 XML 使用类似

then instead of Spinner in the xml use something like

<com.name.internal.widget.IcsSpinner
....
/>

否则设计定制微调自己。但是,如果有很多事情你要喜欢ICS在一些较低级别的API,以实现更好的使用支持库做到这一点。

otherwise design a custom spinner yourself. But if there are many things you want like ICS to be implemented in some lower level API better do it using support libraries.

您可以在开发者网站获取相应的API的支持库:

You can get support libraries for respective APIs' at the developers site:

<一个href=\"http://developer.android.com/tools/extras/support-library.html\">http://developer.android.com/tools/extras/support-library.html

或更好的,你从这里下载,其中还包括 ActionBarSherlock

or better you download it from here, which also includes ActionBarSherlock

http://actionbarsherlock.com/

这篇关于ICS像机器人的previous版本微调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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