自定义全屏对话框
定义样式:
继承Dialog:
调用,显示结果
View view =View.inflate(MainActivity.this, R.layout.slt_cnt_custom, null);
CustomDialog dialog=new CustomDialog(MainActivity.this,view);
dialog.show();
自定义显示位置的对话框
定义样式:
继承AlertDialog
调用,显示结果
SelectDialog selectDialog = new SelectDialog(MainActivity.this,R.style.dialog);
selectDialog.showDialog();
源码下载地址 :http://download.csdn.net/detail/u011663587/6262157