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();