Question

I have included the following folders within my project:

layout    
layout-land/
layout-port/

I placed the my main.axml file in all of them, with a couple of tweaks to the UI of course. But when I change the orientation on the device, noting happens.

I'm doing basically the same as this tutorial, but I'm making use of Xamarin and Visual Studio: http://www.how-to-develop-android-apps.com/how-to-make-a-landscape-layout-in-android/

Not really sure what I'm doing wrong?! Could someone please assist?

Was it helpful?

Solution

Okay, so basically I had a folder called layout-normal. This caused the layout-land to be ignored for some or other reason. I removed the folder from the project and it worked!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top