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