
如何将标题换行到新行?
谢谢.
XML:
<CheckBoxPreference androID:key="keypref" androID:summary="Summary text does wrap around the borders" androID:title="The Title of this preference is" ></CheckBoxPreference>解决方法 您需要进行类似默认(androID内部)CheckBoxPreference的自定义布局.在标题的xml文本视图中,ellipsize设置为Marque,重复限制无限期,可滚动设置为水平.您可以使用以下命令设置CheckBoxPreference的布局:
<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">
希望这会奏效;)
总结以上是内存溢出为你收集整理的android – 如何包装首选项标题?全部内容,希望文章能够帮你解决android – 如何包装首选项标题?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)