1、启动设置logo图
2、优化游戏切换图片闪烁问题
This commit is contained in:
parent
c84fc9e8f1
commit
5373f6b5bc
@ -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>
|
||||
|
@ -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) {
|
||||
|
BIN
app/src/main/res/drawable/screen.9.png
Normal file
BIN
app/src/main/res/drawable/screen.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 228 KiB |
@ -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 |
12
app/src/main/res/values/styles.xml
Normal file
12
app/src/main/res/values/styles.xml
Normal 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>
|
@ -11,6 +11,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.google.gson.Gson;
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.makeramen.roundedimageview.RoundedImageView;
|
||||
@ -65,9 +66,9 @@ public class NewSudGameListViewHolder extends RecyclerView.ViewHolder {
|
||||
playerWeAre2.setText(String.format(itemView.getContext().getString(R.string.interactive_game_player_we_are_3), model.getTotal()));
|
||||
goldenBeanNumber.setText(model.getGoldenBeanNumber());
|
||||
if (TextUtils.equals(model.getSex(), "1")) {
|
||||
ImgLoader.display(itemView.getContext(), R.mipmap.man, sex);
|
||||
Glide.with(itemView.getContext()).load(R.mipmap.man).into(sex);
|
||||
} else if (TextUtils.equals(model.getSex(), "2")) {
|
||||
ImgLoader.display(itemView.getContext(), R.mipmap.girl, sex);
|
||||
Glide.with(itemView.getContext()).load(R.mipmap.girl).into(sex);
|
||||
}
|
||||
// ImgLoader.display(itemView.getContext(), R.mipmap.image, tmp_image);
|
||||
|
||||
|
@ -118,7 +118,6 @@
|
||||
android:layout_height="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/avatar"
|
||||
app:layout_constraintEnd_toEndOf="@id/avatar"
|
||||
android:src="@mipmap/girl"
|
||||
/>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user