Browse Source

解决图片缓存显示问题

zk 1 year ago
parent
commit
8d53c86707

+ 1 - 0
app/src/main/java/com/atmob/voiceai/module/splash/SplashActivity.java

@@ -100,6 +100,7 @@ public class SplashActivity extends BaseActivity<ActivitySplashBinding> {
             binding.tvPractical.setAlpha(alpha);
             binding.tvGuideDone.setAlpha(alpha);
             binding.tvPrivacyPolicy.setAlpha(alpha);
+            binding.vGuideMask.setAlpha(alpha);
         });
         alphaAnimator.start();
     }

BIN
app/src/main/res/drawable-xxhdpi/splash_guide_2.webp


+ 3 - 0
app/src/main/res/layout/activity_splash.xml

@@ -60,6 +60,7 @@
                 android:layout_height="wrap_content"
                 android:layout_marginTop="8dp"
                 android:alpha="0"
+                android:gravity="center"
                 android:text="@string/splash_generate_header_txt_1"
                 android:textColor="@color/white"
                 android:textSize="14sp"
@@ -104,6 +105,7 @@
                 android:layout_height="wrap_content"
                 android:layout_marginTop="8dp"
                 android:alpha="0"
+                android:gravity="center"
                 android:text="@string/splash_generate_header_txt_2"
                 android:textColor="@color/white"
                 android:textSize="14sp"
@@ -148,6 +150,7 @@
             </FrameLayout>
 
             <View
+                android:alpha="0"
                 android:id="@+id/v_guide_mask"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"

+ 1 - 0
app/src/main/res/layout/fragment_history.xml

@@ -112,6 +112,7 @@
 
         <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
             android:id="@+id/swipe_history_layout"
+            android:paddingTop="10dp"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             app:layout_constrainedHeight="true"

+ 2 - 0
app/src/main/res/layout/item_history_clone_voice.xml

@@ -33,6 +33,8 @@
             app:layout_constraintTop_toTopOf="parent" />
 
         <ImageView
+            placeholder="@{null}"
+            error="@{null}"
             android:id="@+id/iv_item_history_voice_avatar"
             imageUrl="@{historyBean.voiceAvatar}"
             radius="@{8}"

+ 2 - 0
app/src/main/res/layout/item_voice_ai_result_recommend.xml

@@ -23,6 +23,8 @@
         android:layout_marginEnd="8dp">
 
         <ImageView
+            placeholder="@{null}"
+            error="@{null}"
             android:id="@+id/iv_avatar"
             imageUrl="@{bean.avatarUrl}"
             isGone="@{bean.isAddIcon}"