You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was more or less expected due to Android 15 inset changes, but I did expect the "action bar" to go under the status bar, not the bar to be correct and the content completely missplaced and under.
The text was updated successfully, but these errors were encountered:
The quick ugly workaround is to apply .windowInsetsPadding(WindowInsets.safeDrawing) to the outermost component. Don't really know the architecture of the app.
If you are using the Scaffold as the parent layout have you tried giving the top padding to its child like this { Column( modifier = Modifier.fillMaxSize().padding(top = it.calculateTopPadding()) .verticalScroll(rememberScrollState()).background(colorResource(R.color.bg_color))
in my cases this works like a charm and automatically adjust the top for me.
I think you must have already tried it but im suggesting this just in case, so in any view in composable there are inbuild padding functions
and for managing the statusbar we have Modifier.statusbarPadding()
and if these are not the solution (most probably bug in Android's end) one other workaround would be to calculate the screen height and the subtracting a safe amount of padding from it and and giving it as the top padding of that top view.
Description
Small UI bug.
Steps to Reproduce
Build with targetSDK 35
This was more or less expected due to Android 15 inset changes, but I did expect the "action bar" to go under the status bar, not the bar to be correct and the content completely missplaced and under.
The text was updated successfully, but these errors were encountered: