Change basic theme color of android application

后端 未结 2 1097
慢半拍i
慢半拍i 2020-12-07 03:40

Every android application/theme hast it\'s own basic theme color:

HTC Desire Z - green,

most Samsung deviced - yellow,...

It\'s the color of selected

相关标签:
2条回答
  • 2020-12-07 04:13

    try this:

        <style name="my_theme" parent="@android:style/Theme.Black">
            <item name="listChoiceIndicatorSingle">xxxxxxx</item>
    <item name="radioButtonStyle">xxxxxxx</item>
    <item name="listChoiceBackgroundIndicator">xxxxxxx</item>
    <item name="listViewStyle">xxxxxxx</item>
    <item name="listDivider">xxxxxxx</item>
    <item name="listSeparatorTextViewStyle">xxxxxxx</item>
        ....
        </style>
    
    0 讨论(0)
  • 2020-12-07 04:14

    In your manifest in application tag define as :

        android:theme="@style/mytheme"
    

    Now in res/values you can define a file say theme.xml with content as :

    <resources> 
        <style name="mytheme" parent="@android:style/Theme" > 
           <item name="android:_DEFAULT_BASE_COLOR_1">#XXXXXX</item>
           <item name="android:windowNoTitle">true</item>
            ... . 
        </style>
    </resources>
    
    0 讨论(0)
提交回复
热议问题