2015-12-30 209 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

您可能需要編輯上面添加的代碼。 –