I have a listView with a custom adapter. When something happens (a click in a child) I do some calculation things and modify the child View. IF some condition has been fulfi
I test it with one line of code when I need to go within a valid position of a Listview. here is your variables used as an example. where lv_data is the ListView and tv is your TextView.
if ( lv_data.getChildAt(lv_data.getPositionForView(tv)) != null) {
int position = lv_data.getPositionForView(tv);
}