English 字幕

← Finding Views findViewById() - Developing Android Apps

埋め込みコードを取得する
10言語

Showing Revision 12 created 05/24/2016 by Udacity Robot.

  1. Here's the solution for
  2. binding an adapter to a ListView within the PlaceholderFragment class. First,
  3. we find the ListView in the view hierarchy by using the findViewById call and
  4. then, we set the adapter to it. The adapter will supply list item layouts to
  5. the ListView based on the weekForecast data. Note that the rootView here
  6. refers to the root view of the fragment, which we just inflated up above here.