首页
Java
登录
6mi
u
盘
搜
搜 索
Java
andriod studio弹出消息对话框
andriod studio弹出消息对话框
xiaoxiao
2021-02-28
63
(1)引出类
import
android.app.AlertDialog;
(2)测试代码,本例子中
selectedImagePath是string类型的测试代码
new
AlertDialog.Builder(
this
) .setTitle(
"标题"
) .setMessage(selectedImagePath) .setPositiveButton(
"确定"
,
null
).show();
转载请注明原文地址: https://www.6miu.com/read-2400374.html
技术
最新回复
(
0
)