Search in sources :

Example 1 with RecyclerAdapter

use of net.gotev.recycleradapter.RecyclerAdapter 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));
    }
}
Also used : RecyclerAdapter(net.gotev.recycleradapter.RecyclerAdapter) VirtualClassementRider(ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider) EmptyItem(ch.hsr.sa.radiotour.presentation.models.EmptyItem) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) Rider(ch.hsr.sa.radiotour.dataaccess.models.Rider) VirtualClassementRider(ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 Rider (ch.hsr.sa.radiotour.dataaccess.models.Rider)1 EmptyItem (ch.hsr.sa.radiotour.presentation.models.EmptyItem)1 VirtualClassementRider (ch.hsr.sa.radiotour.presentation.models.VirtualClassementRider)1 RecyclerAdapter (net.gotev.recycleradapter.RecyclerAdapter)1