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).
Change the project explorer from the Android layout to the Project layout. Open up res/layout-land , then delete the file from there.
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.
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
You can right click the .xml you want to delete then select "Show in Explorer" and then delete the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With