2

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

Monty
  • 3,205
  • 8
  • 36
  • 61
saa
  • 1,538
  • 2
  • 17
  • 35

1 Answers1

8

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);
}
Monty
  • 3,205
  • 8
  • 36
  • 61