TL;DR: I have made 8 new layouts for each activity layout, but they are not showing up. For example, I have a layout-land directory with a layout, but that layout doesn't show up when I turn my phone to landscape?

I have made 8 new layouts for each layout in order to work for every screen size. This took me about 4 hours, but I finally got it done. When I tested it on my phone, and changed to landscape mode, the landscape layout didn't show!

enter image description here

Why is this? Is it a problem with my directory names? Here is the project view:

enter image description here

Why isn't the appropriate layout showing? Have I done something wrong and wasted my last 4+ hours by making layouts for each? If you need any more information, feel free to ask for it.

  • \$\begingroup\$ Do you have configChanges="orientation" set in your manifest? \$\endgroup\$ – bornander Dec 20 '15 at 7:23
  • \$\begingroup\$ Are screen rotation locked on your phone? What phone screen size does your phone have, normal, large? Have you tried rotating all the different activities or just one? \$\endgroup\$ – Christer Dec 20 '15 at 9:52
  • \$\begingroup\$ @Christer My phone is normal screen size. Rotation is not locked. I have tried this on all activities. \$\endgroup\$ – Ruchir Baronia Dec 20 '15 at 9:53
  • \$\begingroup\$ @bornander No, I do not. Where should I place that? \$\endgroup\$ – Ruchir Baronia Dec 20 '15 at 9:54
  • \$\begingroup\$ @Christer :) I know, I think you read my comment wrong, I said it is not locked. If it were locked, then I wouldn't have come to know of this issue. :-) \$\endgroup\$ – Ruchir Baronia Dec 20 '15 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.