| | |
| | | * @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); |