Search in sources :

Example 1 with MyRidesAdapter

use of br.ufrj.caronae.adapters.MyRidesAdapter in project caronae-android by caronae.

the class MyRidesListFrag method updateAdapter.

private void updateAdapter() {
    adapter = new MyRidesAdapter(allRides, (MainAct) getActivity());
    myRidesList.setAdapter(adapter);
    myRidesList.setLayoutManager(new LinearLayoutManager(getActivity()));
}
Also used : MyRidesAdapter(br.ufrj.caronae.adapters.MyRidesAdapter) MainAct(br.ufrj.caronae.acts.MainAct) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 MainAct (br.ufrj.caronae.acts.MainAct)1 MyRidesAdapter (br.ufrj.caronae.adapters.MyRidesAdapter)1