| | |
| | | import com.hdl.photovoltaic.widget.ConfirmationCancelDialog1; |
| | | import com.hdl.photovoltaic.widget.ListDialog; |
| | | import com.hdl.photovoltaic.widget.adapter.ListDialogAdapter; |
| | | import com.jaeger.library.StatusBarUtil; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Override |
| | | public void onBindView(Bundle savedInstanceState) { |
| | | |
| | | setNotificationBarBackgroundColor(CustomColor.white); |
| | | setStatusBarTextColor(); |
| | | setStatusBarTranslucent(); |
| | | //初始化 |
| | | initView(); |
| | | //初始化界面监听器 |
| | |
| | | viewBinding.homeLoginLanguageTv.setText("English"); |
| | | } |
| | | |
| | | // String acc = "13375012441"; |
| | | // String pws = "123456"; |
| | | // //测试用 |
| | | // viewBinding.homeLoginAccountEt.setText(acc); |
| | | // viewBinding.homeLoginPasswordEt.setText(pws); |
| | | String acc = "13375012441"; |
| | | String pws = "123456"; |
| | | //测试用 |
| | | viewBinding.homeLoginAccountEt.setText(acc); |
| | | viewBinding.homeLoginPasswordEt.setText(pws); |
| | | isLoginTextViewEnabled(); |
| | | } |
| | | |
| | |
| | | HdlAccountLogic.getInstance().regionByAccount(account, new CloudCallBeak<HDLUserRegionBean>() { |
| | | @Override |
| | | public void onSuccess(HDLUserRegionBean obj) { |
| | | //String APP_REGIONURL_TEST = "http://47.114.131.143:27199"; |
| | | //AppConfigManage.setUserRegionUrl(APP_REGIONURL_TEST); |
| | | //初始化服务域名 |
| | | AppConfigManage.setUserRegionUrl(obj.getRegionUrl()); |
| | | HDLLinkPMUser.getInstance().setUserRegionUrl(AppConfigManage.getUserRegionUrl()); |
| | |
| | | viewBinding.homeLoginPasswordEt.removeTextChangedListener(passwordTextWatcher); |
| | | } |
| | | |
| | | // 将StatusBar设置为透明 |
| | | public void setStatusBarTranslucent() { |
| | | StatusBarUtil.setTranslucentForImageViewInFragment(this, |
| | | 0, null); |
| | | StatusBarUtil.setLightMode(this); |
| | | } |
| | | |
| | | |
| | | } |