andriod studio弹出消息对话框

xiaoxiao2021-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)