android relativelayout linearlayout performance
2 Need of PercentRelativeLayout In Android. 3 Short Description About RelativeLayoutIn case if we need to create complex view then we use weight property of LinearLayout to distribute view across screens. But while using weight property we must have noticed that we have to add a default LinearLayout>. Lets create project: 1) Create a new project File -> New -> Android Project 2) Create linearlayout.xml in res/layout and insert following.One thought on Android Layouts : LinearLayout and RelativeLayout. These layout classes (LinearLayout, RelativeLayout, etc.) are used to display child controls, such as text controls or buttons on the screen. Android activities (screens) use layouts as a container for view controls, and layouts can actually contain other nested layouts as well. Code. Revisions 4. Android - Optimize LinearLayout and layoutweight using RelativeLayout..