English 字幕

← Create Some Fake Data - Developing Android Apps


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

  1. With our ListView ready to go, we'll want
    to create some fake data to populate it.
  2. Open up MainActivity.java
    and then scroll down to the bottom
  3. where the PlaceholderFragment class is.
  4. Within the onCreateView method,
    create an array list of strings
  5. to represent the weather forecast
    list items shown in the wire frames.
  6. For example, the Today list item will
    be represented as a string shown here.
  7. When you're done,
    check the box and submit.