feat:首页排行榜资源位-背景改为本地
@@ -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 -> {
|
||||
|
Before Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable-xxhdpi/home_rank_1.webp
Normal file
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/drawable-xxhdpi/home_rank_2.webp
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 18 KiB |
BIN
app/src/main/res/drawable-xxhdpi/home_rank_3.webp
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable-xxhdpi/home_rank_bg.webp
Normal file
After Width: | Height: | Size: 42 KiB |
@@ -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
|
||||
|