Commit 1d80eafc authored by Trio Saputra's avatar Trio Saputra

new updated

parent b0bf33e1
......@@ -90,10 +90,11 @@ public class ProductAdapter extends RecyclerView.Adapter<ProductAdapter.ViewHold
binding.setPrice(rupiah.format(product.getPrice()));
if (product.getQuantity() > 0 ) {
binding.setStock("Available");
binding.tvStock.setTextColor(Color.parseColor("#40e0d0"));
binding.tvStock.setTextColor(Color.parseColor("#009688"));
} else {
binding.setStock("Sold Out");
binding.tvStock.setTextColor(Color.parseColor("#BD0303"));
binding.vAdd.setEnabled(false);
}
......
......@@ -23,7 +23,7 @@
<color name="dot_light_screen2">#A9A9A9</color>
<color name="dot_light_screen3">#A9A9A9</color>
<color name="dot_light_screen4">#A9A9A9</color>
<array name="array_dot_active">
<item>@color/dot_light_screen1</item>
<item>@color/dot_light_screen2</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment