Android 应用开发笔记 - 对话框(AlertDialog)
跟大部分Windows对话框组成相同,只不过我们是实现Builder接口而已。
主要代码如下:
- 1楼www_k2tiyu_com5小时前
- 初学者,上面的代码就是创建一个对话框吗???
- Re: xiaobin_HLJ802小时前
- 回复www_k2tiyu_comnn第一张图,表示的运行效果。n第二张图,表示点击对话框中的“Ok”按钮之后的处理。n // DialogInterfacen @Overridentpublic void onClick(DialogInterface dialog, int which) {ntt// TODO Auto-generated method stubnttToast.makeText(this, "You just press 'AlertDialog' button!", Toast.LENGTH_SHORT).show();nt}
