Answers for "how to get child from layout in android"

0

how to get child from layout in android

LinearLayout layout = setupLayout();
int count = layout.getChildCount();
View v = null;
for(int i=0; i<count; i++) {
    v = layout.getChildAt(i);
    //do something with your child element
}
Posted by: Guest on October-28-2020

Code answers related to "how to get child from layout in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language