如何设置ICS主题应用程序minSDK 7? [英] How set ICS theme for application with minSDK 7?

查看:210
本文介绍了如何设置ICS主题应用程序minSDK 7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能有人告诉我,我怎么可以设置一个主题,我的应用程序,这将改变的时候Android版本将会改变。例如,如果有人会用我的Andr​​oid 2.1的主题,应用程序会是这样的: HTTP://daily-money.google$c$c.com/svn/wiki/img/$p$pfs.png

could anybody tell me how can I set a theme for my application which will change when version of Android will change. For example if anybody will use my app on Android 2.1 theme will look like this: http://daily-money.googlecode.com/svn/wiki/img/prefs.png

不过,如果有人会用我的应用程序上,例如安卓4.0.3主题将是这样的:的 http://img.tapatalk.com/dcff019c-27ba-1e1a.jpg 我已经使用minSDK 7。

But if anybody will use my app on for example Android 4.0.3 theme will look like this: http://img.tapatalk.com/dcff019c-27ba-1e1a.jpg I have used minSDK 7.

感谢你。

推荐答案

您想要这个页面上详细介绍了什么:<一href="http://android-developers.blogspot.com/2012/01/holo-everywhere.html">http://android-developers.blogspot.com/2012/01/holo-everywhere.html

What you want is detailed in on this page: http://android-developers.blogspot.com/2012/01/holo-everywhere.html

在标题为默认老年人应用程序

In the section titled "Defaults for Older Apps"

您安装2主题文件,一个在价值观目录,一个在价值观-V11目录。然后,您引用在清单的主题文件。如在页面中概述本人链接上方。您需要在使用河洛同时支持安卓2.x的部分概述了网页上的XML的所有三个模块。

You setup 2 theme files, one in the values directory and one in the values-v11 directory. Then you reference that theme file in the Manifest. As outlined in the page I linked above. You need ALL THREE blocks of XML outlined on that page under the "Using Holo while supporting Android 2.x" section.

这篇关于如何设置ICS主题应用程序minSDK 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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