@Override publicvoidonClick(View view){ switch (view.getId()){ case R.id.btn_message_dialog: DialogHelper.getMessageDialog(mContext,"This is a msg dialog").show(); break; case R.id.btn_confirm_dialog: DialogHelper.getConfirmDialog(mContext,"This is Title","This is a msg dialog").show(); break; case R.id.btn_input_dialog: AppCompatEditText editText = new AppCompatEditText(mContext); DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() { @Override publicvoidonClick(DialogInterface dialogInterface, int i){
} }; DialogHelper.getInputDialog(mContext,"This is Title",editText,false,listener).show(); break; case R.id.btn_progress_dialog: DialogHelper.getProgressDialog(mContext).show(); break; case R.id.btn_select_dialog: DialogHelper.getSelectDialog(mContext, "This is Title", new String[]{"item1", "item2"}, "positiveText", new DialogInterface.OnClickListener() { @Override publicvoidonClick(DialogInterface dialogInterface, int i){