Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 upRelated 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