let's say I have Frame-layout with:
width = 200dp;
height = 100dp;
I want the frame width to adapt to screen "width" and get the "Aspect ratio" and change the "height" according to it so I can do the same to it's content.
whats the best way to do that? I searched but didn't find an answer.
(if it helps the Frame is centered)