Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete only a landscape specific xml layout file?

How do I delete a landscape specific layout file?

In the image below if I press delete or right click and go delete it removes both the landscape and the default xml.
I realize I can remove it from the filesystem through windows explorer, but there has to be a way to this through the IDE (Android studio).

enter image description here

like image 568
Coin_op Avatar asked Oct 11 '16 01:10

Coin_op


People also ask

How do I remove a landscape variation?

Change the project explorer from the Android layout to the Project layout. Open up res/layout-land , then delete the file from there.

How do I make an XML document landscape?

Step 1: Open the base UI layout in DESIGN mode so that you see the actual GUI, such as Buttons, icons, etc. Step 2: Click the icon marked in the below screenshot and, from the menu, select Create Landscape Variation. Then the corresponding Landscape file will be created automatically named as land\xml file name.


2 Answers

Change the project explorer from the Android layout to the Project layout.

Open up res/layout-land, then delete the file from there.

Could also do it from the terminal / OS file-explorer

like image 54
OneCricketeer Avatar answered Oct 11 '22 17:10

OneCricketeer


You can right click the .xml you want to delete then select "Show in Explorer" and then delete the file.

like image 43
DJTano Avatar answered Oct 11 '22 17:10

DJTano