7.6 Class WeatherArrayAdapter
Class WeatherArrayAdapter
defines a subclass of ArrayAdapter
for binding an ArrayList<Weather>
to the MainActivity
’s ListView
.
7.6.1 package
Statement and import
Statements
Figure 7.9 contains WeatherArrayAdapter
’s package
statement and import
statements. We’ll discuss the imported types as we encounter them.
This app’s ListView
items require a custom layout. Each item contains an image (the weather-condition icon) and text representing the day, weather description, low temperature, high temperature and humidity. ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.