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