private RecyclerView initRecycler() { //Initialize the RecyclerView recycler = view.FindViewById <RecyclerView>(Resource.Id.searchDocterRecycler); layoutMgr = new GridLayoutManager(activity, 2); reportCategories = new SearchDoctorInfo(); blockAdapter = new SearchDoctorAdapter(activity, reportCategories); blockAdapter.ItemClick += OnItemClick; recycler.SetLayoutManager(layoutMgr); recycler.SetAdapter(blockAdapter); return(recycler); }
// TODO Align Ctor, public , override and then private methods. // TODO Remove the activity from the adapter. public SearchDoctorAdapter(Activity activity, SearchDoctorInfo reportCategories) { this.activity = activity; this.reportCategories = reportCategories; }