use of com.shu.studentmanager.adpater.CourseManageAdapter in project student-manager by SYYANI.
the class ManageCourseFragment method setCourseOpenListRecycleview.
private void setCourseOpenListRecycleview() {
course_manage_list_recycleview.setHasFixedSize(true);
course_manage_list_recycleview.setLayoutManager(new LinearLayoutManager(getActivity()));
courseManageAdapter = new CourseManageAdapter(getActivity());
course_manage_list_recycleview.setAdapter(courseManageAdapter);
manageCourseViewModel.getMutableLiveData_course_list().observe(getActivity(), new Observer<ArrayList<CourseTeacher>>() {
@Override
public void onChanged(ArrayList<CourseTeacher> courseTeachers) {
courseManageAdapter.updateCourseList(courseTeachers);
}
});
}
Aggregations