According to Android docs :
Using nested instances of LinearLayout can lead to an excessively deep view hierarchy. Nesting several instances of LinearLayout that use the layout_weight parameter can be especially expensive as each child needs to be measured twice. This is particularly important when the layout is inflated repeatedly, such as when used in a ListView or GridView.
Further
The performance might improve by flattening the layout—make the layout shallow and wide, rather than narrow and deep.
You have one LinearLayout
inside another with layout weights. Rather than that you could use RelativeLayout
in place of LinearLayout
.
Have a good read of docs for more information.