| | |
| | | |
| | | |
| | | /** |
| | | * 错误提示框(蓝湖上样式) |
| | | * 全局弹出框,错误提示框(蓝湖上样式) |
| | | * |
| | | * @param isBoolean 图标(true使用成功图标,false使用成功图标) |
| | | * @param msg 信息 |
| | | * @param code 状态 |
| | | */ |
| | | public static void tipFlashingBox(Context context, boolean isBoolean, String msg, int code) { |
| | | tipFlashingBox(context, isBoolean, msg, code, 1500); |
| | | } |
| | | |
| | | /** |
| | | * 全局弹出框,错误提示框(蓝湖上样式) |
| | | * |
| | | * @param isBoolean 图标(true使用成功图标,false使用成功图标) |
| | | * @param msg 信息 |
| | | * @param code 状态 |
| | | * @param millisecond 设置延时时间关闭弹窗(单位ms) |
| | | */ |
| | | public static void tipFlashingBox(Context context, boolean isBoolean, String msg, int code, int millisecond) { |
| | | HdlThreadLogic.runMainThread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | FlashingBoxDialog flashingBoxDialog = new FlashingBoxDialog(context); |
| | | FlashingBoxDialog flashingBoxDialog = new FlashingBoxDialog(context, millisecond); |
| | | if (isBoolean) { |
| | | Drawable drawable = AppCompatResources.getDrawable(context, R.drawable.tip_succeed); |
| | | flashingBoxDialog.setImage(drawable); |