I'm using Android SharedPreferences API to build a settings screen.
I've one setting which I need a long text to explain the user its meaning (I would like to have something like main title and smaller subtitle,but i think it would require to much customization) the settings.xml is like:
<EditTextPreference
android:defaultValue="15"
android:inputType="number"
android:icon="@drawable/ic_timer"
android:key="@string/pref_comment_interval"
android:persistent="true"
android:lines="2"
android:title="@string/time_between_comments" />
but even setting lines=2
and breaking the line with \n
at time_between_comments
the text is getting wrapped.
<string name="time_between_comments">Time between comments (in seconds)\nLower is faster</string>
how can i make the text to break the line?
By default, the title of
EditTextPreference
issingleLine="true"
So we should custom it as below