Is it possible that compose automatically applies ...
# compose
a
Is it possible that compose automatically applies insets? When setting setDecorFitsSystemWindows on my activity, all other fragments draw behind the nav bars etc. while the compose fragment is not. When applying insets now, the other fragments look correct but the compose one has twice the padding now.
l
Did you look at the Accompanist insets library?
a
I thought I would only have to use it if i want to apply the insets? For now, I want to let the enclosing Fragment handle them using Insetter
l
I think it'd be easier to do it with Accompanist than with enclosing Fragment.
a
Its a hybrid app, so I have to use fragments
l
That doesn't prevent you from handling insets in Compose with Accompanist.
a
you seem to missed my point, that the insets are somehow already handled. as you can see, the toolbar draws behind the status bar, while the compose view already applied padding. i havent set any padding what so ever yet