Some items are null in listview onScroll method
问题 I have a listview and I override the onScroll event for it so that I can get the first character of the text on the first visible item of the listview. My code is as follows: @Override public void onScrollStateChanged(AbsListView view, int scrollState) { // } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { ListView caller = (ListView) view; View v = caller.getChildAt(firstVisibleItem); if(v instanceof TextView){ TextView tv =