use of com.shu.studentmanager.adpater.ScoreStudentAdapter in project student-manager by SYYANI.
the class ScoreReviewFragment method setScoreListRecyclerview.
private void setScoreListRecyclerview() {
score_review_list_recyclerview.setHasFixedSize(true);
score_review_list_recyclerview.setLayoutManager(new LinearLayoutManager(getActivity()));
scoreStudentAdapter = new ScoreStudentAdapter(getActivity());
score_review_list_recyclerview.setAdapter(scoreStudentAdapter);
scoreReviewViewModel.getMutableLiveData_score_review_score_list().observe(getActivity(), new Observer<ArrayList<Course>>() {
@Override
public void onChanged(ArrayList<Course> courses) {
scoreStudentAdapter.updateScoreStudentList(courses);
}
});
}
Aggregations