I have a Preference screen and also two EditTextPreference
.
I want to change its background color and font and also to add an image in its background.
How can I do that?
Here it the code as shown below for the layout in XML:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Login Information"
android:key="first_category">
<EditTextPreference
android:key="@string/txtusername"
android:title="@string/username"
android:summary="@string/userNameSummary" />
</PreferenceCategory>
<PreferenceCategory
android:title="Device Information"
android:key="Device">
<EditTextPreference
android:key="welcome_message"
android:title="DeviceId"
android:summary="This is your mobile device ID"
android:shouldDisableView="true" />
</PreferenceCategory>
</PreferenceScreen>