| | |
| | | import androidx.appcompat.content.res.AppCompatResources; |
| | | |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.databinding.LoadingExceptionLogBinding; |
| | | import com.hdl.photovoltaic.databinding.DialogExceptionLogBinding; |
| | | |
| | | /** |
| | | * 异常弹窗 |
| | | */ |
| | | public class ConfirmationExceptionDialog extends Dialog { |
| | | |
| | | private LoadingExceptionLogBinding viewBinding; |
| | | private DialogExceptionLogBinding viewBinding; |
| | | private final Context mContext; |
| | | private String contentStr; |
| | | |
| | |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | viewBinding = LoadingExceptionLogBinding.inflate(getLayoutInflater()); |
| | | viewBinding = DialogExceptionLogBinding.inflate(getLayoutInflater()); |
| | | setContentView(viewBinding.getRoot()); |
| | | // Window window = getWindow(); |
| | | // window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT); |