Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made a space in a fullscreen. #220

Open
shwjdqls opened this issue May 2, 2024 · 0 comments
Open

Made a space in a fullscreen. #220

shwjdqls opened this issue May 2, 2024 · 0 comments

Comments

@shwjdqls
Copy link

shwjdqls commented May 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant