feat: 修改 VMC 貨道清單之未配置商品圖示、卡片背景色與一鍵補貨按鈕配色

This commit is contained in:
TaiwanStar Developer 2026-06-05 17:24:37 +08:00
parent 8f6b5217d6
commit 2e71cc29b8
5 changed files with 5 additions and 4 deletions

View File

@ -90,10 +90,10 @@ public class RecyclerVmcSlotListAdpter extends RecyclerView.Adapter<RecyclerVmcS
try {
new ImageGlide(context).fileload(productImg, holder.binding.imageProduct);
} catch (LogsEmptyException e) {
holder.binding.imageProduct.setImageResource(R.drawable.cpu);
holder.binding.imageProduct.setImageResource(R.drawable.slot_no_product);
}
} else {
holder.binding.imageProduct.setImageResource(R.drawable.cpu);
holder.binding.imageProduct.setImageResource(R.drawable.slot_no_product);
}
holder.binding.buttonCountMinus.setOnClickListener(v -> {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -80,7 +80,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginEnd="8dp"
android:backgroundTint="@color/background"
android:backgroundTint="@color/light_gray"
android:textColor="@color/black"
android:text="一鍵補貨"
android:textSize="24dp" />

View File

@ -7,7 +7,7 @@
android:layout_margin="6dp"
app:cardCornerRadius="8dp"
app:cardElevation="3dp"
app:cardBackgroundColor="@color/background"
app:cardBackgroundColor="@color/cardSurface"
app:strokeColor="@color/outline"
app:strokeWidth="1dp">
@ -64,6 +64,7 @@
android:id="@+id/imageProduct"
android:layout_width="0dp"
android:layout_height="0dp"
android:src="@drawable/slot_no_product"
app:layout_constraintTop_toBottomOf="@id/layoutLock"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"