Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #child #layout #android
ADD COMMENT
Topic
Name
9+7 =