In this picture, the title of my Preference
does not wrap around its parent.
How can I make the title wrap to a new line?
Thanks.
xml:
<CheckBoxPreference
android:key="keypref"
android:summary="Summary text does wrap around the borders"
android:title="The title of this preference is" >
</CheckBoxPreference>
You would need to make custom layout which resembles default (android internal) CheckBoxPreference. In that xml text view of title should be with ellipsize set to Marque, repeat limit indefinite and scrollable set to horizontal. Than you can set layout of CheckBoxPreference with:
<CheckBoxPreference
android:key="key_checkbox_pref"
android:summary="Summary text does wrap around the borders"
android:title="The title of this preference."
android:layout="@layout/custom_checkbox_preferences_layout">
Hope that would work ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With