MM内地版本修改启动页背景

This commit is contained in:
guozhen
2024-12-06 11:20:37 +08:00
committed by xuhuixiang
parent e1b17dbbd3
commit c1ec89ae4f
3 changed files with 10 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ import android.provider.Settings;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
@@ -84,8 +85,11 @@ public class WelcomeActivity extends BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ALog.d(Constant.PROJECT_TAG, TAG, "onCreateView");
getWindow().setNavigationBarColor(getResources().getColor(R.color.color_white));
//getWindow().setNavigationBarColor(getResources().getColor(R.color.color_white));
// 设置全屏
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
IMApplication.setColdStart(true);
activityWelcomeBinding = ActivityWelcomeBinding.inflate(getLayoutInflater());
setContentView(activityWelcomeBinding.getRoot());
@@ -95,7 +99,7 @@ public class WelcomeActivity extends BaseActivity {
Uri uri = getIntent().getData();
getScheme(uri);
// initClip();
activityWelcomeBinding.bigBg.setBackgroundResource(R.color.color_white);
//activityWelcomeBinding.bigBg.setBackgroundResource(R.color.color_white);
if (TextUtils.isEmpty(NIMClient.getCurrentAccount())) {
startLogin();
} else {

View File

@@ -7,6 +7,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@mipmap/ic_welcome_bg"
tools:context=".welcome.WelcomeActivity">
<RelativeLayout
@@ -27,8 +28,8 @@
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottieView"
android:layout_width="119.7dp"
android:layout_height="119.7dp"
android:layout_width="@dimen/dp_106"
android:layout_height="@dimen/dp_106"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/loading"

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 KiB