Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Binding Data in the Activity

To properly bind data in a RecyclerView, you need to add <data> attributes to both the item layout and the activity layout. We just added the <data> attribute in the hourly_list_item.xml file, but we also need to add the following in the activity_hourly_forecast.xml file:

&lt;data&gt;
  &lt;variable
      name=&quot;hour&quot;
      type=&quot;com.teamtreehouse.stormy.Weather.Hour&quot;/&gt;
&lt;/data&gt;

...