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);
}
......
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