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

Android 15 sdk 35 edgeToEdge default setting overlap controllers #110

Open
AntonChuraev99 opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@AntonChuraev99
Copy link

photo_2024-11-22_09-27-12

Android 15 sdk 35 edgeToEdge Default Settings

Need to disable edge to edge or add paddings

code to add paddings

ViewCompat.setOnApplyWindowInsetsListener(
    findViewById<View>(R.id.appbar)
) { v: View, insets: WindowInsetsCompat ->
    val systemBars: Insets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
    v.setPadding(0, systemBars.top, 0, 0)
    insets
}
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