https://kotlinlang.org logo
#compose
Title
# compose
j

JD

09/01/2020, 2:18 PM
Are there plans in future to enhance the scaffold API so that it takes into account various cutouts while going edge-to-edge layouts? Trying on a pixel 4A emulator the camera is positioned such that it overlaps the drawer or the place the title would be present.
Now wondering is this scaffold or in general all UI needs to handle Pixel 4A placement of camera?
m

matvei

09/01/2020, 2:39 PM
Good question. Not sure about pixel4a in particular, but
Scaffold
definitely requires some future work to make edge-to-edge easy and out of the box. In the meantime, @cb has an excellent library with predefined set of modifier to make it easier.
👍 1
j

JD

09/01/2020, 4:31 PM
I believe you are referring this one https://github.com/chrisbanes/insetter
m

matvei

09/01/2020, 4:42 PM
Yes, sorry, didn't have it at hand. This is the one!
👍 1
a

Archie

09/01/2020, 5:03 PM
this might be related to this as well?
m

matvei

09/01/2020, 5:07 PM
Yes, for now no matter whether you use scaffold or not -- it's not doing anything and you still have to set status bar color as in regular android, nothing compose specific here I believe
m

maciejciemiega

09/07/2020, 9:58 AM
It looks like your emulator is not configured properly anyway. Notice that system doesn’t respect the cutout as well so it overlaps the clock and the notification bar itself is much narrower than it would be on Pixel 4a. This happens if you create emulator of some device and then just select device frame for some other device. The device frame is just an image overlayed on top and will not impact how system sees things.