| | |
| | |
|
| | | import com.hdl.photovoltaic.HDLApp;
|
| | | import com.hdl.photovoltaic.R;
|
| | | import com.hdl.photovoltaic.config.UserConfigManage;
|
| | |
|
| | | import io.dcloud.feature.sdk.Interface.IDCUniMPAppSplashView;
|
| | |
|
| | |
| | | // 通过inflate方法将布局文件转换为View对象
|
| | | splashView = inflater.inflate(R.layout.activity_b_splash, null);
|
| | | try {
|
| | | int colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
|
| | | if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 1) {
|
| | | colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
|
| | | } else if (UserConfigManage.getInstance().getUniBottomSafeDistanceBackgroundColor() == 2) {
|
| | | colorInt = HDLApp.getInstance().getColor(R.color.text_FF161616);
|
| | | }
|
| | | //设置导航条背景颜色
|
| | | Activity activity = (Activity) context;
|
| | | activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF161616));
|
| | | activity.getWindow().setNavigationBarColor(colorInt);
|
| | | } catch (Exception ignored) {
|
| | | }
|
| | | return splashView;
|