小编Mar*_*416的帖子

如何更改CheckBox标题的大小或使其包装在PreferenceScreen xml中?

我正在为我的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"

                />
Run Code Online (Sandbox Code Playgroud)

也许我错过了一些东西,但我尝试过使用其他一些属性而没有任何积极的结果.我试过android:singleLine,android:lines等等,这些似乎都没有影响首选项的标题.还有一种方法可以缩小CheckBox标题的大小吗?

任何帮助将不胜感激.

谢谢 :)

xml checkbox android title android-preferences

5
推荐指数
1
解决办法
2662
查看次数

标签 统计

android ×1

android-preferences ×1

checkbox ×1

title ×1

xml ×1