Esempio n. 1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            // TODO bind the results to the model
            RestaurantSectionViewHolder restaurantsectionViewHolder = holder as RestaurantSectionViewHolder;

            restaurantsectionViewHolder.DisplayRestaurantSectionList(_restaurantsectionModel[position]);
        }
Esempio n. 2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            // Inflate the CardView for the chef list layout:
            View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.item_restaurant_section_list_layout, parent, false);

            // register viewholder clicks
            RestaurantSectionViewHolder restaurantsectionViewHolder = new RestaurantSectionViewHolder(itemView);

            return(restaurantsectionViewHolder);
        }