how to get child from linearlayout on android

how to get child from linearlayout on android
r‮e‬fer to:lautturi.com
LinearLayout layout = setupLayout();
int count = layout.getChildCount();

View v = null;

for(int i=0; i<count; i++) {
    v = layout.getChildAt(i); // get child elements from LinearLayout
}
Created Time:2017-09-11 22:26:03  Author:lautturi