MM内地版本修改启动页背景
This commit is contained in:
@@ -22,6 +22,7 @@ import android.provider.Settings;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
import android.view.WindowManager;
|
||||||
import android.view.animation.Animation;
|
import android.view.animation.Animation;
|
||||||
import android.view.animation.AnimationUtils;
|
import android.view.animation.AnimationUtils;
|
||||||
|
|
||||||
@@ -84,8 +85,11 @@ public class WelcomeActivity extends BaseActivity {
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
ALog.d(Constant.PROJECT_TAG, TAG, "onCreateView");
|
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);
|
IMApplication.setColdStart(true);
|
||||||
activityWelcomeBinding = ActivityWelcomeBinding.inflate(getLayoutInflater());
|
activityWelcomeBinding = ActivityWelcomeBinding.inflate(getLayoutInflater());
|
||||||
setContentView(activityWelcomeBinding.getRoot());
|
setContentView(activityWelcomeBinding.getRoot());
|
||||||
@@ -95,7 +99,7 @@ public class WelcomeActivity extends BaseActivity {
|
|||||||
Uri uri = getIntent().getData();
|
Uri uri = getIntent().getData();
|
||||||
getScheme(uri);
|
getScheme(uri);
|
||||||
// initClip();
|
// initClip();
|
||||||
activityWelcomeBinding.bigBg.setBackgroundResource(R.color.color_white);
|
//activityWelcomeBinding.bigBg.setBackgroundResource(R.color.color_white);
|
||||||
if (TextUtils.isEmpty(NIMClient.getCurrentAccount())) {
|
if (TextUtils.isEmpty(NIMClient.getCurrentAccount())) {
|
||||||
startLogin();
|
startLogin();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
android:background="@mipmap/ic_welcome_bg"
|
||||||
tools:context=".welcome.WelcomeActivity">
|
tools:context=".welcome.WelcomeActivity">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
@@ -27,8 +28,8 @@
|
|||||||
|
|
||||||
<com.airbnb.lottie.LottieAnimationView
|
<com.airbnb.lottie.LottieAnimationView
|
||||||
android:id="@+id/lottieView"
|
android:id="@+id/lottieView"
|
||||||
android:layout_width="119.7dp"
|
android:layout_width="@dimen/dp_106"
|
||||||
android:layout_height="119.7dp"
|
android:layout_height="@dimen/dp_106"
|
||||||
app:lottie_autoPlay="true"
|
app:lottie_autoPlay="true"
|
||||||
app:lottie_loop="true"
|
app:lottie_loop="true"
|
||||||
app:lottie_rawRes="@raw/loading"
|
app:lottie_rawRes="@raw/loading"
|
||||||
|
|||||||
BIN
app/src/main/res/mipmap-xxxhdpi/ic_welcome_bg.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ic_welcome_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 927 KiB |
Reference in New Issue
Block a user