DJ FLasH
DJ FLasH

Reputation: 1

I need to change the TextColor of the sub item in my Preference Page

This is only changing the title of the preference. I need to change the Sub item where the user will input a number Looked Everywhere cannot find a solution. Please Help.

XML :

android:layout_width="match_parent"
android:layout_height="match_parent"
android:title="@string/app_name"


>
<EditTextPreference
    android:title="@string/wage_title_preference"
    android:key="@string/wage_key"
    android:defaultValue="@string/wage_default_preference"
    android:inputType="text"
    android:textColor="@color/colorPrimaryDark"

    android:singleLine="true">

</EditTextPreference>

Upvotes: 0

Views: 51

Answers (1)

teck wei
teck wei

Reputation: 1385

You mean the placeholder? If yes try this

<EditTextPreference
android:title="@string/wage_title_preference"
android:key="@string/wage_key"
android:defaultValue="@string/wage_default_preference"
android:inputType="text"
android:textColor="@color/colorPrimaryDark"
android:textColorHint="Your color"
android:singleLine="true">

</EditTextPreference>

Upvotes: 1

Related Questions