Highlight ListView item at creation time via code
问题 I would like to highlight the first row (0) of my ListView when I create the listView. I tried different ways (like you can see in the commented code), but nothing worked. It's strange because the highlight in the OnItemClickListener WORKS FINE! (It works via an xml selector). I have this method in my fragment that it's called by onCreateView: private void createListViewAll(View rootView, int listID, String[][] textList) { MainListAdapter bindingData = new MainListAdapter(getActivity(),