createDialog
来源:互联网 发布:钻戒哪个牌子好 知乎 编辑:程序博客网 时间:2024/06/11 02:57
private void createDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this,
AlertDialog.THEME_HOLO_LIGHT);
builder.setView(createView());
builder.setTitle(getString(com.mediatek.internal.R.string.sdcard_ready_title));
builder.setPositiveButton(getString(android.R.string.yes),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
}
});
builder.setNegativeButton(getString(android.R.string.no),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
}
});
AlertDialog.Builder builder = new AlertDialog.Builder(this,
AlertDialog.THEME_HOLO_LIGHT);
builder.setView(createView());
builder.setTitle(getString(com.mediatek.internal.R.string.sdcard_ready_title));
builder.setPositiveButton(getString(android.R.string.yes),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
}
});
builder.setNegativeButton(getString(android.R.string.no),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
}
});
}
private View createView() {
TextView messageView = new TextView(this.getApplicationContext());
messageView.setTextAppearance(messageView.getContext(), android.R.style.TextAppearance_Medium);
messageView.setText(com.mediatek.internal.R.string.sdcard_select_default_path);
messageView.setBackgroundColor(Color.WHITE);
return messageView;
}
0 0
- createDialog
- CreateDialog Function
- CreateDialog和DialogBox
- CreateDialog和DialogBox
- CreateDialog和DialogBox
- win32 CreateDialog和DialogBox
- Win32API:CreateDialog、DialogBox、DialogProc
- CreateDialog Tab Control 点击两次才能切换
- win32窗口创建 之 CreateDialog和DialogBox
- 简单的使用CreateDialog的Win32程序框架
- 串口程序开发日志:关于DialogBox和CreateDialog的区别
- 非模式对话框CreateDialog() 与 模式对话框 DialogBoxParam()和DialogBox()
- 简单的使用CreateDialog的Win32程序框架
- 非模式对话框CreateDialog() 与 模式对话框 DialogBoxParam()和DialogBox()
- 简单的使用CreateDialog的Win32程序框架
- CreateDialog并关闭二级页面刷新父级页面
- CreateDialog Win32 API调用的一个小问题
- 握手对话框;CreateDialog;DefDlgProc;改变静态文本的方法; GetDlgItem
- apk隐藏到图片中
- Git 基础
- 2015年imac一体机安装双系统问题及解决技巧
- android -- Can't create handler inside thread that has not called Looper.prepare()
- CABasicAnimation用法
- createDialog
- hive的启动
- 可以实现pdf转换成txt格式的方法
- android数据库支持的数据类型
- Linux进程和内核级进程的一些知识
- windows 命令行查找字符串 和 文件(find & findstr & for)
- GitHub最火的Android开源项目
- POJ 1056 IMMEDIATE DECODABILITY 字典树
- storm入门原理