protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.BookAppointment_Customer); mRecyclerViewTime = FindViewById <RecyclerView>(Resource.Id.recyclerViewTime_BookAppointment_Customer); mLayoutManagerTime = new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false); mRecyclerViewTime.SetLayoutManager(mLayoutManagerTime); mTime_List = new Customer_BookAppointment_Time_ViewModel_List(); mAdapterTime = new BookAppointment_Time_Customer_Adapter(mTime_List); mRecyclerViewTime.SetAdapter(mAdapterTime); mRecyclerViewTherapist = FindViewById <RecyclerView>(Resource.Id.recyclerViewTherapist_BookAppointment_Customer); mLayoutManagerTherapist = new LinearLayoutManager(this, LinearLayoutManager.Horizontal, false); mRecyclerViewTherapist.SetLayoutManager(mLayoutManagerTherapist); mTherapist_List = new Customer_BookAppointment_Therapist_ViewModel_List(); mAdapterTherapist = new BookAppointment_Therapist_Customer_Adapter(mTherapist_List); mRecyclerViewTherapist.SetAdapter(mAdapterTherapist); Spinner spinner = FindViewById <Spinner>(Resource.Id.spnOutlet_BookAppointment_Customer); var adapter = ArrayAdapter.CreateFromResource( this, Resource.Array.planets_array, Resource.Layout.item_Spinner); adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem); spinner.Adapter = adapter; back = FindViewById <ImageView>(Resource.Id.imgback_BookAppointment_Customer); finish = FindViewById <Button>(Resource.Id.BtxSendConfirm_BookAppointment_Customer); back.Click += Back_Click; finish.Click += Finish_Click; }
public BookAppointment_Time_Customer_Adapter(Customer_BookAppointment_Time_ViewModel_List Time_List) { //this.context = context; mTime_List = Time_List; }