This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Hooking everything up inside the HourlyForecastActivty class.
I mentioned updating the background color for the RecyclerView
but the background color should be set on the ConstraintLayout
to fill the entire screen.
Additional Resources
Hour data for Cut & Paste
Hour hour = new Hour(1526508000, "Mostly Cloudy", 57.29, "partly-cloudy-day", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526511600, "Clear", 57.29, "clear-night", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526515200, "Clear", 57.29, "clear-day", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526518800, "Windy", 57.29, "wind", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526522400, "Snowy", 57.29, "snow", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526526000, "Raining", 57.29, "rain", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526529600, "Foggy", 57.29, "fog", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526533200, "Mostly Cloudy", 57.29, "partly-cloudy-night", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526536800, "Sleet", 57.29, "sleet", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526540400, "Cloudy", 57.29, "cloudy", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(152654400, "Mostly Cloudy", 57.29, "partly-cloudy-day", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526547600, "Partly Cloudy", 57.29, "partly-cloudy-night", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526551200, "Partly Cloudy", 57.29, "partly-cloudy-night", "America/Los_Angeles");
hours.add(hour);
hour = new Hour(1526554800, "Partly Cloudy", 57.29, "partly-cloudy-night", "America/Los_Angeles");
hours.add(hour);
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
aaronr
2,493 Points0 Answers
-
Martin Klestil
5,520 Points1 Answer
-
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points2 Answers
-
bytepunch
iOS Development with Swift Techdegree Student 5,114 Points6 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up