Changing presentation of ListPreference

0

I am using ListPreference to launch a configuration menu and for aesthetics I would like to differentiate the title of the menu (serial port) from the rest of the options, either changing the color of the text or changing the typeface to bold, but when I try to do using styles.xml everything is changed, can I do what I need, like?

This is my style.xml

<resources>

<!-- Base application theme. -->
<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>


    <item name="android:editTextPreferenceStyle">@style/textAppearanceCustom</item>

</style>

<style name="textAppearanceCustom">
    <item name="android:textSize">24sp</item>
    <item name="android:textStyle">bold</item>
    <item name="android:textColor">@color/AZUL</item>
    <item name="android:typeface">monospace</item>

</style>

    
asked by W1ll 14.11.2018 в 02:37
source

0 answers