private RecyclerView initRecycler() { //Initialize the RecyclerView recycler = view.FindViewById <RecyclerView>(Resource.Id.doctorsRecycler); layoutMgr = new LinearLayoutManager(activity); doctorsInformation = new DoctorsInformation(); blockAdapter = new DoctorsInfoAdapter(doctorsInformation, activity); blockAdapter.ItemClick += OnItemClick; recycler.SetLayoutManager(layoutMgr); recycler.SetAdapter(blockAdapter); return(recycler); }
public DoctorsInfoAdapter(DoctorsInformation doctorsInformation, Activity activity) { this.activity = activity; this.doctorsInformation = doctorsInformation; }