For IntelliJ IDEA and
Android Studio


public static View getChildAtPosition(final AdapterView view, final int position) { final int index = position - view.getFirstVisiblePosition(); if ((index >= 0) && (index < view.getChildCount())) { return view.getChildAt(index); } else { return null; } }
parent.setTag(AQuery.TAG_NUM, pos); int count = parent.getChildCount();
public int findIndexOfItemContainingText(String targetText) { for (int i = 0; i < realAdapterView.getChildCount(); i++) { View childView = realAdapterView.getChildAt(i); String innerText = shadowOf(childView).innerText(); if (innerText.contains(targetText)) { return i; } } return -1; }
public static View getChildAtPosition(final AdapterView view, final int position) { final int index = position - view.getFirstVisiblePosition(); if ((index >= 0) && (index < view.getChildCount())) { return view.getChildAt(index); } else { return null; } }