How to make so that the button stayed in the same place in the app regardless of the screen resolution?

Ie if I write the app and make it under the resolution 600x800 buttons for me where it should be, but if I run this app on device with different resolution, they move out. How to consolidate in one place?
June 10th 19 at 16:52
2 answers
June 10th 19 at 16:54
To do stretching interface and not laid on the size of the screen. Narrow question.
June 10th 19 at 16:56
you need to keep? If the absolute spacing of buttons around the edges of the container use absolute positioning (of course, on different screens, the buttons will be positioned visually different). If the relative - use in the metrics DP of padding or constraint in KACH-ve the container.

Find more questions by tags Android