public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.Item_ShoppingCardShoppingCart_Service_Customer, parent, false); Customer_ShoppingCardShoppingCart_Service_ViewModel_ViewHolder vh = new Customer_ShoppingCardShoppingCart_Service_ViewModel_ViewHolder(itemView, OnClick); return(vh); }
public async override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { Customer_ShoppingCardShoppingCart_Service_ViewModel_ViewHolder vh = holder as Customer_ShoppingCardShoppingCart_Service_ViewModel_ViewHolder; myAPI = RestService.For <IMyAPI>("https://goldenspa.azurewebsites.net"); var result = await myAPI.GetOutletFromService(cart_list[position].MaDv); holder. //a.GetOutletToSpinner(vh.Outlet, result); if (cart_list[position].Anhdv == "") { Picasso.Get().Load(cart_list[position].Anhcb).Into(vh.ServiceImg); } else { Picasso.Get().Load(cart_list[position].Anhdv).Into(vh.ServiceImg); } //vh.OutletName.Text = cart_list[position].ten; //vh.Time.Text = cart_list[position].NgayHen.ToString(); getListOutlet(cart_list[position].MaDv, cart_list[position].MaCombo, vh.Outlet, ); }