Search in sources :

Example 1 with PredictionArrayAdapter

use of com.example.androidforios.app.adapters.PredictionArrayAdapter in project AndroidForiOS by smbarne.

the class TripDetailFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    Prediction[] predictions = mTrip.predictions.toArray(new Prediction[mTrip.predictions.size()]);
    PredictionArrayAdapter predictionArrayAdapter = new PredictionArrayAdapter(getActivity().getApplicationContext(), predictions);
    setListAdapter(predictionArrayAdapter);
    return super.onCreateView(inflater, container, savedInstanceState);
}
Also used : Prediction(com.example.androidforios.app.data.model.Prediction) PredictionArrayAdapter(com.example.androidforios.app.adapters.PredictionArrayAdapter)

Aggregations

PredictionArrayAdapter (com.example.androidforios.app.adapters.PredictionArrayAdapter)1 Prediction (com.example.androidforios.app.data.model.Prediction)1