Exemplo n.º 1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Item_Outlet_Service_Customer, parent, false);
            Customer_Outlet_Service_ViewModel_ViewHolder vh = new Customer_Outlet_Service_ViewModel_ViewHolder(itemView, OnClick);

            return(vh);
        }
Exemplo n.º 2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            Customer_Outlet_Service_ViewModel_ViewHolder vh = holder as Customer_Outlet_Service_ViewModel_ViewHolder;

            Picasso.Get().Load(mService_List[position].Image).Into(vh.ServiceImg);
            vh.ServiceName.Text = mService_List[position].NameService;
            if (mService_List[position].NamePromotion == null)
            {
                vh.ServicePrice.Text = mService_List[position].price.ToString();
            }
            else
            {
                vh.ServicePrice.Text = mService_List[position].Discount.ToString();
            };
        }