如何在ListPreference中改变AlertDialog的文字大小?
来源:互联网 发布:信用卡网络怎么套现 编辑:程序博客网 时间:2024/06/05 18:34
例1:
2
3
4
protected
void
onPrepareDialogBuilder(AlertDialog.Builder builder) {
builder =
new
AlertDialog.Builder(
new
ContextThemeWrapper(
this
.getContext(), R.style.ListDlgTheme));
super
.onPrepareDialogBuilder(builder);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public
class
ListPreferenceEx
extends
ListPreference
{
Context context1;
View menuView;
public
ListPreferenceEx(Context context, AttributeSet attrs)
{
super
(context, attrs);
context1=context;
}
@Override
protected
void
onPrepareDialogBuilder(AlertDialog.Builder builder)
{
//Builder builder1=new AlertDialog.Builder(new ContextThemeWrapper(context1, R.style.AlertDialogCustom));
//super.onPrepareDialogBuilder(builder); // To change body of overridden
// methods use File | Settings |
// File Templates.
//builder=new AlertDialog.Builder(new ContextThemeWrapper(context1, R.style.AlertDialogCustom));
menuView = View.inflate(context1, R.layout.add_tab,
null
);
/*builder.setNegativeButton(null, null);
builder.setTitle(null);*/
builder.setView(menuView);
}
}
阅读全文
0 0
- 如何在ListPreference中改变AlertDialog的文字大小?
- 如何获取ListPreference的值(在PreferenceActivity中)
- 如何改变AlertDialog 的大小
- 如何改变AlertDialog 的大小
- 如何改变AlertDialog 的大小
- MFC中改变编辑框文字大小、颜色的方法
- 随时改变文字大小的程序
- iOS改变webView的文字大小
- 改变support中AlertDialog的样式
- 如何改变 GIMP 窗口上文字大小 字体大小
- Android中ListPreference的使用
- 改变文字大小
- 如何用PB程序在excel画表格边框线,如何改变文字大小
- windows mobile 6.0系统中自己制作的今日插件,通过“开始-设置-系统-屏幕-文字大小”调整文字大小后,插件上的文字大小不改变!
- 改变AlertDialog 的大小
- 改变AlertDialog的大小
- 在迅捷CAD编辑器中修改文字大小的办法
- 如何设置ListPreference的默认选项
- 组件、插件、控件的区别
- 布署好自己的tomcat后在网页打不开
- 接口测试【前段与后端】
- opencv-OpenCV中的图像处理 [2]-OpenCV中的轮廓
- [S3-E438]Angular开山篇
- 如何在ListPreference中改变AlertDialog的文字大小?
- WSO2 ESB 5.0.0 文档
- 高频电路设计布线技巧十项规则
- 数据库小记
- linux关于端口的查询命令。
- 类的大小
- 高通和商汤科技宣布合作,骁龙芯片将全面AI化
- 嵌入式linux面试题解析(二)——C语言部分一
- UE4衣服材质换色