protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            loadingCircle = FindViewById <ProgressBar>(Resource.Id.loadingCircle);
            recyclerView  = FindViewById <RecyclerView>(Resource.Id.attendanceRecyclerView);
            dateLbl       = FindViewById <TextView>(Resource.Id.attendanceDateLbl);
            emptyState    = FindViewById(Resource.Id.empty);
            classId       = Intent.GetIntExtra("classId", 0);

            EmptyStateManager.SetEmptyState(emptyState, Resource.Drawable.ic_female_graduate_student, "No student attended class on this day.");

            SetupUI();
        }
        public override Dialog OnCreateDialog(Bundle savedInstanceState)
        {
            var view = Activity.LayoutInflater.Inflate(Resource.Layout.dialog_search_resource, null);

            recycler      = view.FindViewById <RecyclerView>(Resource.Id.resourceRecycler);
            emptyState    = view.FindViewById(Resource.Id.empty);
            loadingCircle = view.FindViewById <ProgressBar>(Resource.Id.loadingCircle);
            searchView    = view.FindViewById <EditText>(Resource.Id.searchView);

            if (emptyStateIconResId != 0) // 0 means use the default smiley face
            {
                EmptyStateManager.SetEmptyState(emptyState, emptyStateIconResId, "Oops! Couldn't find anything");
            }

            loadingCircle.Visibility = ViewStates.Visible;
            Task.Run(() => SetupList());
            return(new AlertDialog.Builder(Activity)
                   .SetView(view)
                   .Create());
        }