-2

Earlier, I asked this question: Landscape mode for app?

Where I had a directory for each and every layout, but the layout in the layout-land directory wasn't showing up when positioning my layout in landscape orientation. enter image description here

So, someone suggested to me that it maybe that the

Layout-normal directories are overriding my regular layout-land directories. Is this true?

If so, will any other of my layout folders get overriding? What is the purpose of layout-normal in the first place then anyway?

Thanks,

Ruchir

Community
  • 1
  • 1
Ruchir Baronia
  • 7,406
  • 5
  • 48
  • 83

1 Answers1

0

First understand, how resources are pulled out in android. If your device is large, then the layout from layout-large gets loaded. If you device is normal then the layout from layout-normal gets loaded. But if the android system is unable to determine whether the device is large or normal or anything else. Then layouts from the layout get loaded.

Eric B.
  • 4,622
  • 2
  • 18
  • 33
  • Yes, I know all that. If you look at this [question](http://stackoverflow.com/questions/34378238/landscape-mode-for-app?lq=1) You'll see that I do have all of the appropriate directories. The issue I'm having is that even when I put my `normal` size screen to `landscape` mode, the regular `layout` mode gets loaded. – Ruchir Baronia Dec 23 '15 at 04:54
  • Make a back up of the `layout-land` and then delete the folder. Now try to run and see what happens. – Eric B. Dec 23 '15 at 04:57
  • Okay, I will do that, but I only have so many devices to test on and catch these issues. So does anything else override anything? – Ruchir Baronia Dec 23 '15 at 04:57
  • From the way i see it, you have all the screen sizes handled. That is `small`, `normal`, `large`, `xlarge`. So i don't think there would be any other problems. Lastly, as you already know it is recommended to use `sw` qualifiers. – Eric B. Dec 23 '15 at 05:05