2015-12-30 208 views
-1

我使用Theme.Holo.Light如何更改主题的默认颜色。 在风格的帮助下。 以下是我的主题更改默认主题颜色

<style name="myTheme" parent="@android:style/Theme.Holo.Light"> 

</style> 
+1

你的主题在哪里? –

+1

哇!我见过的最短风格的文件! –

+0

MaC

回答

1
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <!-- Customize your theme here. --> 

    <!-- colorPrimary is used for the default action bar background --> 
    <item name="colorPrimary">@color/colorPrimary</item> 

    <!-- colorPrimaryDark is used for the status bar --> 
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item> 

    <!-- colorAccent is used as the default value for colorControlActivated 
     which is used to tint widgets --> 
    <item name="colorAccent">@color/colorAccent</item> 

    <!-- You can also set colorControlNormal, colorControlActivated 
     colorControlHighlight & colorSwitchThumbNormal. --> 
</style> 

您可以使用主题编辑器来设置各种颜色。 enter image description here

+0

即时通讯使用eclipse,怎么做在eclipse中 – MaC

+0

您可能需要编辑上面添加的代码。 –