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.