自定义content
AlertDialog dialog = new AlertDialog.Builder(this)
.create();
dialog.show();
dialog.setContentView(R.layout.dialog_layout);
setContentView 一定要写在 dialog.show() 之前,否则回报android.util.AndroidRuntimeException: requestFeature() must be called before adding content