Changing theme in android project in eclipse

给你一囗甜甜゛ 提交于 2019-12-12 07:27:55

问题


I'm having a problem with finding where I can change my project's theme. For now, I'm learning android using this tutorial.

My project's theme looks like this:

And I'd like this UI looked like that:

Where can I find that theme and instructions, to install it? Thanks.


回答1:


The theme you are looking for is Holo, either Holo Light or Holo Dark. There are multiple variations of this theme so make sure to play with the themes until you find the one you need. In order to use this theme in your xml file use this as a parameter for the tag:

android:theme="@android:style/Theme.Holo"

or

android:theme="@android:style/Theme.Holo.Light"

There are many more variations of Holo, which would be in the style

Theme.Holo.insertvariationshere



回答2:


You can find the themes xml file at the link below. Scroll to the bottom and you will see a link to the xml file that is used for themes. You can look through this for reference but it should have already become available to you when you downloaded the SDK.

http://developer.android.com/guide/topics/ui/themes.html

In order to change the theme, you just modify your manifest file

<application android:theme="@style/[themeNameHere]">


来源:https://stackoverflow.com/questions/19847075/changing-theme-in-android-project-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!