Example #1
0
 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);
 }
Example #2
0
 public DoctorsInfoAdapter(DoctorsInformation doctorsInformation, Activity activity)
 {
     this.activity           = activity;
     this.doctorsInformation = doctorsInformation;
 }