I want to customize my EditTextPreference
, so i added a TextView
in the left of my EditTextPreference
.
Here is my code:
<EditTextPreference
android:key="alert_planed_edittext_preference"
android:title="@string/alert_planed_edittext_preference"
android:summary="@string/alert_planed_summary_edittext_preference"
android:dialogTitle="@string/alert_planed_dialog_title_edittext_preference" />
That's what i get in my application:
And i want to customize my EditTextPreference, that's what i want to get:
I want to add the number in the right, can i do that?
When i click i get this dialog:
I want the user to be allowed to select only numbers, how can i do that?
Edit: I found the solution for the second problem:
<EditTextPreference
android:key="alert_planed_edittext_preference"
android:title="@string/alert_planed_edittext_preference"
android:summary="@string/alert_planed_summary_edittext_preference"
android:dialogTitle="@string/alert_planed_dialog_title_edittext_preference"
android:numeric="integer" />