1、启动设置logo图

2、优化游戏切换图片闪烁问题
This commit is contained in:
老皮
2024-09-13 11:13:16 +08:00
parent c84fc9e8f1
commit 5373f6b5bc
8 changed files with 18 additions and 5 deletions

View File

@@ -131,6 +131,7 @@
<activity
android:name="com.shayu.phonelive.activity.LauncherActivity"
android:exported="true"
android:theme="@style/MySplashTheme"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity">
<intent-filter>

View File

@@ -131,7 +131,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
mBtnSkipVideo = findViewById(R.id.btn_skip_video);
mBtnSkipImage.setOnClickListener(this);
mBtnSkipVideo.setOnClickListener(this);
ImgLoader.display(mContext, R.mipmap.screen, mCover);
// ImgLoader.display(mContext, R.drawable.screen, mCover);
mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@@ -59,7 +59,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:src="@mipmap/screen"
android:src="@drawable/screen"
android:scaleType="centerCrop" />
<ImageView

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MySplashTheme" parent="AppTheme">
<!--正常-->
<item name="android:windowBackground">@drawable/screen</item>
<!-- <item name="android:windowBackground">@drawable/bg_splash</item>-->
<item name="android:windowFullscreen">true</item>
</style>
</resources>