Skip to content

Made a space in a fullscreen. #220

@shwjdqls

Description

@shwjdqls

Describe the bug
A margin remained on the top in a fullscreen.
It seems to be a problem caused by the status bar.

To Reproduce

  1. Go into a fullscreen.
window.setDecorFitsSystemWindows(false)
window.insetsController?.let {
    it.hide(WindowInsets.Type.systemBars())
    it.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
}
  1. Show a prompt using compose.
val context = LocalContext.current as ComponentActivity
MaterialTapTargetPrompt.Builder(context)
    .setTarget(composeViews[index])
    .setPrimaryText(primaryTexts[index])
    .setSecondaryText(secondaryTexts[index])
    .setBackgroundColour(colorTypedArray.getColor(index, 0))
    .show()
  1. See a space on the top of the screen..

Expected behavior
No space above the prompt.

Screenshots
Screenshot_20240502_153359_GhostCam

Stack trace
Nothing.

Smartphone (please complete the following information):

  • Device: Galaxy A32
  • OS: Android 13 Tiramisu API 33
  • Library version 3.3.2

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions