Browse Source

1.优化UI

王鹏鹏 2 years ago
parent
commit
8f62ed0e83

+ 3 - 3
workbenches/src/main/java/com/yingyang/workbenches/adapter/ServicePackageListAdapter.kt

@@ -24,12 +24,12 @@ class ServicePackageListAdapter(override val layoutId: Int = R.layout.item_servi
         binding.data = item
         val index = position + 1
         if (index % 3 == 0) {
-            binding.tvTitle.setBackgroundResource(R.drawable.bg_package_three)
+            binding.tvTitle.setBackgroundResource(R.mipmap.icon_package_three)
         } else {
             if (index % 3 == 2) {
-                binding.tvTitle.setBackgroundResource(R.drawable.bg_package_two)
+                binding.tvTitle.setBackgroundResource(R.mipmap.icon_package_two)
             } else {
-                binding.tvTitle.setBackgroundResource(R.drawable.bg_package_one)
+                binding.tvTitle.setBackgroundResource(R.mipmap.icon_package_one)
             }
         }
         binding.buyBtn.setOnSingleClickListener {

BIN
workbenches/src/main/res/mipmap-xxhdpi/icon_package_one.png


BIN
workbenches/src/main/res/mipmap-xxhdpi/icon_package_three.png


BIN
workbenches/src/main/res/mipmap-xxhdpi/icon_package_two.png