团队冲刺09
刷新的问题还是没有解决,只有新建之后不能刷新,修改删除倒是可以。
//刷新listview public void refreshListView() { Log.d(TAG, "refreshListView: "); SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this.getActivity()); dao op = new dao(this.getActivity()); op.open(); // set adapter if (noteList.size() > 0) noteList.clear(); noteList.addAll(op.getAllNotes()); /*if (sharedPreferences.getBoolean("reverseSort", false)) sortNotes(noteList, 2); else sortNotes(noteList, 1);*/ op.close(); adapter.notifyDataSetChanged(); }