@Override
public void onBindViewHolder(ExerciseHolder holder, int position) {
ExercisePresenter.onBindExerciseRowViewAtPosition(holder, position);
}
@Override
public int getItemCount() {
return ExercisePresenter.getExercisesRowsCount();
}
...
presenter
...
public static void onBindExerciseRowViewAtPosition(ExerciseRowView rowView, int position) {
Exercise e = mExerciseList.get(position);
rowView.setTitle(e.getTitle());
rowView.setLastDate(e.getLastTrainDate());
rowView.setActive(e.isActive());
rowView.setPosition(position);
}
public static int getExercisesRowsCount() {
return mExerciseList.size();
}
...
да, если у него совсем не будет изменяемого состояния
Обсуждают сегодня