示例#1
0
 @Override
 public void setShowDetails(boolean showDetails) {
   // TODO CHANGE THIS!!! (was just a quick fix)
   if (adapter != null) {
     adapter.setShowDetails(showDetails);
     adapter.notifyDataSetChanged();
   }
 }
示例#2
0
  private void updateLookAdapter(String name, String fileName) {
    name = Utils.getUniqueLookName(name);

    LookData lookData = new LookData();
    lookData.setLookFilename(fileName);
    lookData.setLookName(name);
    lookDataList.add(lookData);

    adapter.notifyDataSetChanged();

    if (lookDataListChangedAfterNewListener != null) {
      lookDataListChangedAfterNewListener.onLookDataListChangedAfterNew(lookData);
    }

    // scroll down the list to the new item:
    final ListView listView = getListView();
    listView.post(
        new Runnable() {
          @Override
          public void run() {
            listView.setSelection(listView.getCount() - 1);
          }
        });
  }
示例#3
0
 @Override
 public void setSelectMode(int selectMode) {
   adapter.setSelectMode(selectMode);
   adapter.notifyDataSetChanged();
 }