Android has many standard layouts that can be used to design the layout. Using these layouts means that each layout has to be added to your application. The app is also required to initialize it, and the layout later requires to be drawn.
Layout hierarchy is making use a layout within another parent layout. For example, using nested instances of RelativeLayout or LinearLayout. Using such nested layouts is a very costly way of doing layout drawing work, because it requires a lot of processing to be done. Furthermore, if LinearLayout uses the layout_weight parameter, then it is more expensive, as each child needs to be measured twice. The android:layout_weight attribute assigns a value to a view in terms of how ...