I have been fighting with this for 2 days, nothing comes out. In the studio, one thing is different in the emulators!
Suppose I have a 800x600 140 dpi screen (@ 1x), and it has only a horizontal orientation.
I make a layout, in the studio everything looks perfect. For example, I have a 800dp screen, if I indent right and left for 250dp, the content in the center is displayed in a 320dp wide column. 290 + 320 + 290 = 800.
When I run the application in a standard emulator or Genymotion, the central column becomes much thinner - 20dp, that is, as if it were portrait mode! I don't understand at all.
What I have tried, did not help:
- Create alternative layouts for the horizon and landscape.
- Create alternative layouts with a clearly defined width.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDCAPE)- it just puts the image on its side, while I see the same narrow strip.