AlertDialog的实现

alertdialogbuilder=new AlertDialog.Builder(MainActivity.this);
                View view=getLayoutInflater().inflate(R.layout.layout_alertdialog,null,false);
                alertdialogbuilder.setView(view);
                alertdialogbuilder.setCancelable(false);
                alertdialog=alertdialogbuilder.create();
                alertdialog.show();

 

posted @ 2016-05-07 13:27  zqxLonely  阅读(141)  评论(0编辑  收藏  举报