How to change an already Existing Layout
Here we have a RelativeLayout and we will change it to LinearLayout.
Open the Graphical Layout of the XML file for which you want to change the Layout.
Right click on the RelativeLayout in the Outline section and Click on the Change Layout.
Select LinearLayout from the drop down in the Change Layout Screen.
Click OK, and that’s it your Layout is changed to the LinearLayout.
If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.