YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Two Item View Types - Developing Android Apps

Get Embed Code
10 Languages

Showing Revision 14 created 05/25/2016 by Udacity Robot.

  1. To finish Todo we modify
    the NewView method
  2. to choose layout ID
    based on view type.
  3. If the view type is today,
    then we use this resource ID.
  4. This points to the layout XML file
    list item forecast today.
  5. If the list type is for a future day,
    then we use this resource ID.
  6. This points to the list item
    forecast layout XML.
  7. Then we inflate that layout.