use of ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider in project app by TourLive.
the class VirtualClassFragment method intiTable.
private void intiTable(View root) {
recyclerAdapter = new RecyclerAdapter();
recyclerAdapter.setEmptyItem(new EmptyItem(getString(android.R.string.cancel)));
recyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
recyclerView.setAdapter(recyclerAdapter);
for (Rider r : RiderPresenter.getInstance().getAllRidersReturned()) {
recyclerAdapter.add(new VirtualClassementRider(this, mContext, r));
}
}
use of ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider in project app by TourLive.
the class VirtualClassFragment method updateRiders.
public void updateRiders(RealmList<Rider> riders) {
recyclerAdapter.clear();
for (Rider r : riders) {
recyclerAdapter.add(new VirtualClassementRider(this, mContext, r));
}
recyclerAdapter.notifyDataSetChanged();
}
Aggregations