0
我有以下應用主題。它支持以下項目標籤,如colorPrimary,colorPrimaryDark,colorAccent。我想知道它支持的其他物品標籤。例如:如果我想設置應該是一致的編輯文本的顏色,那麼應該使用什麼樣的標籤?安卓主題中的風格標籤
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
只是做一個新的風格例如。 Edit_text_Style並根據你對edit_text框的外觀在這個樣式中添加所需的屬性。擴展這個樣式爲'parent =「@ android:style/Widget.EditText'.Now在你的'AppTheme'風格中使用'- @ style/Edit_text_Style
' –