I
I
ildar19892017-06-22 21:16:42
Java
ildar1989, 2017-06-22 21:16:42

Why is the markup floating away when the application is turned on in landscape orientation?

Such a problem, the application provides for portrait and landscape screen orientations with separate layot ​​files for each, that is, the position of all elements is set correctly. If you turn on the application in the vertical position of the device, then everything is displayed correctly, and when you switch to the horizontal mode, everything is in place. But if, when you turn on the application, the phone is placed horizontally, then the Textviews located on the screen float down, and when transferred to a vertical position, they also end up below the place where they were located. What could be the problem? Maybe some property to these elements needs to be registered?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Mokhin, 2017-06-29
@mokhin-denis

Maybe they chose the parent container incorrectly, or messed up something in the nesting of one container in another? Try using Relative instead of Linear and vice versa. Start everything from scratch again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question