Esempio n. 1
0
  private void updateViews() {
    ((ImageView) findViewById(R.id.image_type_icon))
        .setImageResource(mDetailData.getImageResourceId());
    ((TextView) findViewById(R.id.text_type_title)).setText(mDetailData.getTitle());
    String countText = getString(R.string.hokkori_count, mDetailData.getHokkoriList().size());
    ((TextView) findViewById(R.id.text_type_count)).setText(countText);

    for (Iterator<Hokkori> iterator = mDetailData.getHokkoriList().iterator();
        iterator.hasNext(); ) {
      Hokkori hokkori = iterator.next();
      addHokkoriToListView(hokkori);
    }
  }
Esempio n. 2
0
  private void addHokkoriToListView(Hokkori hokkori) {
    mAdapter.insert(hokkori, 0);

    String countText = getString(R.string.hokkori_count, mDetailData.getHokkoriList().size());
    ((TextView) findViewById(R.id.text_type_count)).setText(countText);
  }