方法
基础
View getChildAt (int index)
Returns the view at the specified position in the group.
int getChildCount()
Returns the number of children in the group.
优化
- 减少布局嵌套 ;
- 尽可能使用性能消耗少的布局;如:有时用LinearLayout,有时用RelativeLayout ;
- 用
<include></include>
; - 需要按需显示地控件使用
<ViewStub />
;