den*_*tex 5 android android-preferences
请不要指向如何包装偏好标题?因为它不适用于(如我所评论的)您使用@strings/对strings.xml文件的引用的情况.
如果你使用
android:title="@string/some_string"
并把
<string name="some_string">the string I want \n to wrap</string>
进入strings.xml,\n被忽略.
我认为title首选项屏幕内的所有内容都应该是单行的。
我认为声明 as 不会android:title="The title of this preference\nis this."起作用。这也将被忽略\n。
所以,我的建议是,将标题设为单行,并进行总结来描述它。
<CheckBoxPreference android:key="extention"
android:title="@string/title"
android:summary="@string/summary"
android:defaultValue="true"
/>
Run Code Online (Sandbox Code Playgroud)
注意:\n将用于总结
| 归档时间: |
|
| 查看次数: |
1851 次 |
| 最近记录: |