0

Can anyone tell me how I can change my apps theme from the default ones made available? Holo and Holo.Light get a bit boring after a while.

The likes of Facebook, Google+, BBC Weather, Viber, Vine and Twitter all look very professional and have their own theme whereas the app I'm developing looks quite boring.

Is it possible to change the font of the text in my app? I know it's possible to change the colour and size of it.

Another thing which would be useful to know would be how to change the colour of the action bar that is used for my app. Currently it's black but I wouldn't mind changing it to a different colour than those used by the Android default themes (e.g. purple, green, blue, etc)

Maybe you can share some tips on what you think works well for Android design?

4

1 回答 1

0

您可以在http://jgilfelt.github.io/android-actionbarstylegenerator/生成自定义主题

如果您只想更改一些字体颜色等,请仔细查看(来源:http: //developer.android.com/guide/topics/ui/themes.html

如果您喜欢某个主题,但想对其进行调整,只需将该主题添加为自定义主题的父级即可。例如,您可以像这样修改传统的灯光主题以使用您自己的颜色:

<color name="custom_theme_color">#b0b0ff</color>
<style name="CustomTheme" parent="android:Theme.Light">
    <item name="android:windowBackground">@color/custom_theme_color</item>
    <item name="android:colorBackground">@color/custom_theme_color</item>
</style>

(请注意,这里需要将颜色作为单独的资源提供,因为 android:windowBackground 属性只支持对另一个资源的引用;与 android:colorBackground 不同,它不能被赋予颜色文字。)

现在在 Android Manifest 中使用 CustomTheme 而不是 Theme.Light:

<activity android:theme="@style/CustomTheme">
于 2013-07-18T21:38:39.643 回答