Skip to content

Instantly share code, notes, and snippets.

@BoshiLee
Created December 28, 2017 19:15
Show Gist options
  • Save BoshiLee/cfe088a2e695fd1e6387c12465619db3 to your computer and use it in GitHub Desktop.
Save BoshiLee/cfe088a2e695fd1e6387c12465619db3 to your computer and use it in GitHub Desktop.
private fun setupAdapter() {
this.forecastListAdapter = ForecastListAdapter(this, WeatherService.threeDayForecast)
forecast_List.adapter = this.forecastListAdapter
forecast_List.layoutManager = LinearLayoutManager(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment