@Override public void setShowDetails(boolean showDetails) { // TODO CHANGE THIS!!! (was just a quick fix) if (adapter != null) { adapter.setShowDetails(showDetails); adapter.notifyDataSetChanged(); } }
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); } }); }
@Override public void setSelectMode(int selectMode) { adapter.setSelectMode(selectMode); adapter.notifyDataSetChanged(); }