0.0.3 - 新增可自定义alert弹窗确定,取消文字.confirm||cancel
0.0.2 - 修复DialogUpdate在些手机上有title空白
compile 'com.lonely-mushroom:viewlib:0.0.3'
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
DialogUpdateWidget.getInstance().createDialog(context, true).show();
ToastWidget.getInstance().createToast(context, "给我提示", ToastWidget.STATUS_SUCCESS).show();
DialogWidget.getInstance().createLoadingDialog(context, true);
SheetBean bean = new SheetBean();
bean.setTitle("测试");
List<BensEntity> list = new ArrayList<>();
list.add(new BensEntity("1"));
list.add(new BensEntity("2"));
list.add(new BensEntity("3"));
bean.setBtns(list);
SheetViewWidget.getInstance().createFragment(MainActivity.this, bean, new SheetViewWidget.SheetViewListener() {
@Override
public void listener(String title) {
ToastWidget.getInstance().createToast(context, title, ToastWidget.STATUS_SUCCESS).show();
}
});
AlertBean alertBean = new AlertBean();
alertBean.setTitle("测试");
alertBean.setMessage("message");
alertBean.setIsJudgment(true);
AlertWidget.getInstance().createFragment(context, alertBean, new AlertWidget.AlertManagerListener() {
@Override
public void listener(boolean flag) {
ToastWidget.getInstance().createToast(context, flag + "", ToastWidget.STATUS_SUCCESS).show();
}
});