昨天fragment的显示以及刷新的问题。
今天对删除全部信息设置确认密码的功能。
//刷新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(); }