use of com.shu.studentmanager.adpater.StudentCourseSelectAdapter in project student-manager by SYYANI.
the class CourseSelectFragment method setCourseSelectListRecycleview.
private void setCourseSelectListRecycleview() {
course_select_list_recycleview.setHasFixedSize(true);
course_select_list_recycleview.setLayoutManager(new LinearLayoutManager(getActivity()));
studentCourseSelectAdapter = new StudentCourseSelectAdapter(getActivity());
course_select_list_recycleview.setAdapter(studentCourseSelectAdapter);
courseSelectViewModel.getMutableLiveData_student_select_course_list().observe(getActivity(), new Observer<ArrayList<CourseStudent>>() {
@Override
public void onChanged(ArrayList<CourseStudent> courseStudents) {
studentCourseSelectAdapter.updateCourseSelectList(courseStudents);
}
});
}
Aggregations