Example #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Item_Home_Discount_Customer, parent, false);
            Customer_Home_Service_ViewModel_ViewHolder vh = new Customer_Home_Service_ViewModel_ViewHolder(itemView, OnClick);

            return(vh);
        }
Example #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            Customer_Home_Service_ViewModel_ViewHolder vh = holder as Customer_Home_Service_ViewModel_ViewHolder;

            Picasso.Get().Load(listPromotion[position].Image).Into(vh.ServiceImg);
            vh.ServiceName.Text       = listPromotion[position].NameService;
            vh.ServicePrice.Text      = listPromotion[position].price.ToString();
            vh.NumberOutletApply.Text = "Có " + listPromotion[position].TotalOutlets.ToString() + " chi nhánh áp dụng";
        }