| | |
| | | import com.hdl.photovoltaic.enums.ShowErrorMode; |
| | | import com.hdl.photovoltaic.widget.ConfirmationCancelDialog; |
| | | import com.hdl.photovoltaic.widget.ConfirmationExceptionDialog; |
| | | import com.hdl.photovoltaic.widget.FlashingBoxDialog; |
| | | import com.hdl.photovoltaic.widget.FlashingIconBoxDialog; |
| | | |
| | | /** |
| | |
| | | handler.post(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | Toast.makeText(context, text, Toast.LENGTH_SHORT).show(); |
| | | FlashingBoxDialog flashingBoxDialog = new FlashingBoxDialog(context, 1500); |
| | | flashingBoxDialog.setContent(text); |
| | | flashingBoxDialog.show(); |
| | | // Toast.makeText(context, text, Toast.LENGTH_SHORT).show(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | handler.post(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | // FlashingBoxDialog flashingIconBoxDialog = new FlashingBoxDialog(context, 1500); |
| | | // flashingIconBoxDialog.setContent(hdlException.getMsg() + "(" + hdlException.getCode() + ")"); |
| | | // flashingIconBoxDialog.show(); |
| | | Toast.makeText(context, hdlException.getMsg() + "(" + hdlException.getCode() + ")", Toast.LENGTH_SHORT).show(); |
| | | } |
| | | }); |
| | |
| | | handler.post(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | |
| | | Toast.makeText(context, resId, Toast.LENGTH_SHORT).show(); |
| | | } |
| | | }); |
| | |
| | | /** |
| | | * 全局弹出框,错误提示框(蓝湖上样式) |
| | | * |
| | | * @param isBoolean 图标(true使用成功图标,false使用成功图标) |
| | | * @param isBoolean 图标(true使用成功图标,false使用失败图标) |
| | | * @param msg 信息 |
| | | * @param code 状态 |
| | | */ |
| | |
| | | /** |
| | | * 全局弹出框,错误提示框(蓝湖上样式) |
| | | * |
| | | * @param isBoolean 图标(true使用成功图标,false使用成功图标) |
| | | * @param isBoolean 图标(true使用成功图标,false使用失败图标) |
| | | * @param msg 信息 |
| | | * @param code 状态 |
| | | * @param millisecond 设置延时时间关闭弹窗(单位ms) |