读书人

Android开发便签一:AlertDialog的使用

发布时间: 2012-08-27 21:21:57 作者: rapoo

Android开发便签1:AlertDialog的使用
Android如何产生的一个AlertDialog:

AlertDialog.Builder alert = new AlertDialog.Builder(this);alert.setTitle("");//设置标题alert.setMessage("AlertDialog");//设置显示的内容alert.setPositiveButton("", new DialogInterface.OnClickListener(){                           //处理点击事件public void onClick(DialogInterface arg0, int arg1){//点击按钮要做的事情......}});alert.create().show();

读书人网 >Android

热点推荐