https://kotlinlang.org logo
m

Maik

08/25/2020, 9:11 AM
Hello everyone, is it possible to work with relative heights or widths? Suppose I have a box with a variable size and now I want to draw an image into the box that only fills a part of the box - for example: height of the image = 0.3 x height of the box Is this supported by the framework?
I have found the solution. The modifiers ".fillMax..." support a scaling factor.
👍 1
j

Joost Klitsie

08/25/2020, 10:35 AM
7 Views