feat:首页排行榜资源位-背景改为本地

This commit is contained in:
max
2024-06-19 18:18:33 +08:00
parent a46b5b4f32
commit 574f290004
9 changed files with 4 additions and 2 deletions

View File

@@ -97,7 +97,9 @@ class HomeRecommendFragment : BaseViewBindingFragment<FragmentHomeRecommendBindi
binding.viewFlipper.isVisible = true
resourceViews.forEachIndexed { index, imageView ->
imageView.isVisible = true
imageView.load(it[index].icon)
if (index != 0) {
imageView.load(it[index].icon)
}
imageView.setOnClickListener { _ ->
when {
it[index].resourceType == 5 -> {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -39,6 +39,7 @@
android:id="@+id/iv_resource0"
android:layout_width="@dimen/dp_0"
android:layout_height="0dp"
android:src="@drawable/home_rank_bg"
android:layout_marginStart="@dimen/dp_14"
android:scaleType="centerCrop"
android:visibility="gone"
@@ -48,7 +49,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearance="@style/shape_corner_4dp"
tools:src="@drawable/default_banner"
tools:visibility="visible" />
<AdapterViewFlipper