例如 LinearLayout ll = new LinearLayout ();
View view1 ;
View view2 ;
ll.addview(view1);
ll.addviw(view2);
for(int i = 0 ; i<2;i++){
view1 = ll.getchildat(i) ;
}
例如往线性布局中添加View对象,可以通过getchildat(int index)取出来例如 LinearLayout ll = new LinearLayout ();
View view1 ;
View view2 ;
ll.addview(view1);
ll.addviw(view2);
for(int i = 0 ; i<2;i++){
view1 = ll.getchildat(i) ;
}
例如往线性布局中添加View对象,可以通过getchildat(int index)取出来