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