feat: 修改 VMC 貨道清單之未配置商品圖示、卡片背景色與一鍵補貨按鈕配色
This commit is contained in:
parent
8f6b5217d6
commit
2e71cc29b8
@ -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 -> {
|
||||
|
||||
BIN
app/src/main/res/drawable/slot_no_img.png
Normal file
BIN
app/src/main/res/drawable/slot_no_img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
app/src/main/res/drawable/slot_no_product.png
Normal file
BIN
app/src/main/res/drawable/slot_no_product.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@ -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" />
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user