Search in sources :

Example 1 with PopupAdapter

use of com.ushahidi.android.app.adapters.PopupAdapter in project Ushahidi_Android by ushahidi.

the class MapFragment method onActivityCreated.

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    mListReportModel = new ListReportModel();
    mListReportModel.load();
    mReportModel = mListReportModel.getReports();
    showCategories();
    mHandler = new Handler();
    if (checkForGMap()) {
        map = getMap();
        Preferences.loadSettings(getActivity());
        initMap();
        map.setInfoWindowAdapter(new PopupAdapter(getLayoutInflater(savedInstanceState)));
        map.setOnInfoWindowClickListener(this);
    }
}
Also used : Handler(android.os.Handler) ListReportModel(com.ushahidi.android.app.models.ListReportModel) PopupAdapter(com.ushahidi.android.app.adapters.PopupAdapter)

Aggregations

Handler (android.os.Handler)1 PopupAdapter (com.ushahidi.android.app.adapters.PopupAdapter)1 ListReportModel (com.ushahidi.android.app.models.ListReportModel)1