Search in sources :

Example 1 with StationsListAdapter

use of be.brunoparmentier.openbikesharing.app.adapters.StationsListAdapter in project OpenBikeSharing by bparmentier.

the class StationsListFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    stations = (ArrayList<Station>) getArguments().getSerializable(KEY_STATIONS);
    emptyListResourceId = getArguments().getInt(KEY_EMPTY_LIST_RESOURCE_ID);
    stationsListAdapter = new StationsListAdapter(getActivity(), R.layout.station_list_item, stations);
}
Also used : Station(be.brunoparmentier.openbikesharing.app.models.Station) StationsListAdapter(be.brunoparmentier.openbikesharing.app.adapters.StationsListAdapter)

Aggregations

StationsListAdapter (be.brunoparmentier.openbikesharing.app.adapters.StationsListAdapter)1 Station (be.brunoparmentier.openbikesharing.app.models.Station)1