@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getListView().setTextFilterEnabled(true); getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); getListView().setItemChecked(1, true); getListView().setSelection(1); getListView().setSelected(true); if (menuList != null && arrData.size() == 0 && menuList.size() > 0) { arrData.addAll(menuList); adapter.notifyDataSetChanged(); } }
@Override public void onResume() { super.onResume(); adapter.notifyDataSetChanged(); }