如何使用|How To Useage
new CBDialogBuilder(this) .setTouchOutSideCancelable(true) .showCancelButton(true) .setTitle("这是一个普通样式的对话框") .setMessage("this is a normal CBDialog") .setConfirmButtonText("确定") .setCancelButtonText("取消") .setDialogAnimation(CBDialogBuilder.DIALOG_ANIM_SLID_BOTTOM) .create().show();
设置一个进度框的超时监听
.setOnProgressOutTimeListener(5, new CBDialogBuilder.onProgressOutTimeListener() { @Override public void onProgressOutTime(Dialog dialog, TextView dialogMsgTextView) { // do your work } })
设置avloading进度框动画样式颜色
.setProgressIndicatorColor(0xaa198675) .setProgressIndicator(CBDialogBuilder.INDICATOR_BallRotate)
详情参考DEMO
DEMO下载地址