LinearLayout getChildAt(index) method always returning 0th position of child view. How to get remain child views in my LinearLayout by getChildAt(index).
Any help .Thanks
LinearLayout getChildAt(index) method always returning 0th position of child view. How to get remain child views in my LinearLayout by getChildAt(index).
Any help .Thanks
may be it can help you.
ll is your linear layout here.
int childcount = ll.getChildCount();
for (int i=0; i < childcount; i++){
View v = ll.getChildAt(i);
}