在这个图片中,标题the title of my Preference
不能折行。
如何让这个标题折行呢?
xml:
<CheckBoxPreference
android:key="keypref"
android:summary="Summary text does wrap around the borders"
android:title="The title of this preference is" >
</CheckBoxPreference>
你可以使用\n
来创建一个新行。
<CheckBoxPreference
android:key="keypref"
android:summary="Summary text does wrap around the borders"
android:title="The title of this preference\nis this." >
</CheckBoxPreference>