Answer the question
In order to leave comments, you need to log in
How to make different layout for different screen ratios?
Is it possible to do something in android studio so that the layout depends on the screen ratio?
Let me explain in more detail:
Let's say we have a panel with a width of 200px (conditionally). It is necessary that at ratios less than 2 (height/width<2; for example, 9:16) the socket does not change its size and always remains in the center.
But if the ratio is 2 or more (9:18, 9:21, etc.) - the panel narrowed and depended on the side edges of the screen
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question