コード例 #1
0
 @Override
 public void execute() throws Exception {
   crossReference = myLibrarian.getCrossReference(bReference);
   if (PreferenceHelper.crossRefViewDetails()) {
     crossReferenceContent = myLibrarian.getCrossReferenceContent(crossReference.values());
   }
 }
コード例 #2
0
  private void setListAdapter() {
    List<Item> items = new ArrayList<Item>();
    for (String link : crossReference.keySet()) {
      if (PreferenceHelper.crossRefViewDetails()) {
        items.add(new SubtextItem(link, crossReferenceContent.get(crossReference.get(link))));
      } else {
        items.add(new TextItem(link));
      }
    }

    ItemAdapter adapter = new ItemAdapter(this, items);
    LV.setAdapter(adapter);
  }