Search in sources :

Example 1 with CityListAdapter

use of com.djalel.android.bilal.adapters.CityListAdapter in project Bilal by cdjalel.

the class SearchCityActivity method searchCity.

private void searchCity(String query) {
    List<City> cityList = mDBHelper.searchCity(query, mLanguage);
    if (cityList != null) {
        mCityListAdapter = new CityListAdapter(this, cityList);
        mCityListView = findViewById(R.id.list_city);
        mCityListView.setAdapter(mCityListAdapter);
        mCityListView.setOnItemClickListener(this);
    }
}
Also used : City(com.djalel.android.bilal.datamodels.City) CityListAdapter(com.djalel.android.bilal.adapters.CityListAdapter)

Aggregations

CityListAdapter (com.djalel.android.bilal.adapters.CityListAdapter)1 City (com.djalel.android.bilal.datamodels.City)1