listview getChildAt() Return null
This produces null:
TextView textView = (TextView) listView.getChildAt(0);
Log.i("item", textView.getText().toString());
And this does not:
TextView textView = (TextView) listView.getAdapter().getView(0, null, listView);
Log.i("item", textView.getText().toString());
This example used android.R.layout.simple_list_item_1
so keep in mind that TextView is root view in simple_list_item_1.