我正在为我的 Android 应用程序在 xml 中编写首选项屏幕。我的问题是首选项的某些标题太长,不会换行。考虑我的例子:
<CheckBoxPreference
android:title="Language Detection (BETA)"
android:defaultValue="false"
android:summary="Automatically decide which language to use"
android:key="lan_det_pref"
android:textSize="15px"
android:lines="4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
也许我遗漏了一些东西,但我尝试使用许多其他属性,但没有得到积极的结果。我尝试过 android:singleLine、android:lines 等,但这些似乎都不会影响首选项的标题。还有一种方法可以缩小 CheckBox 标题的大小吗?
任何帮助将不胜感激。
谢谢 :)