android 弹出窗口

末蓝、 2022-08-26 08:50 349阅读 0赞

new AlertDialog.Builder(this).setTitle(“提示”).setMessage(R.string.about).setIcon(
R.drawable.play_radio).setNegativeButton(“返回”,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
// 取消按钮事件
}
}).show();

发表评论

表情:
评论列表 (有 0 条评论,349人围观)

还没有评论,来说两句吧...

相关阅读

    相关 js 窗口

    Javascript弹出子窗口  可以通过多种方式实现,下面介绍几种方法  (1) 通过window对象的open()方法,open()方法将会产生一个新的