94 questions
0 votes
0 answers
29 views
How to detect visibility of left navigation bar with behaviour - BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE?
I have an activity and inside this using Fragment with ConstraintLayout container. I enabled left navigation bar with swipe right but I am not able to dismiss it or know if it's dismissed as per my ...
0 votes
0 answers
105 views
Compose Dialog bottom sheet bellow Navigation Bar after SDK 35 migration (Insets = 0)
I’m migrating my app to Android SDK 35 and ran into the classical problem of elements being displayed underneath the Status Bar and Navigation Bar. I started using Insets to add padding and it is ...
0 votes
0 answers
64 views
ViewCompat.setOnApplyWindowInsetsListener not working in andorid < API 30 devices
I wanted to observe window inset for navigation bar and ime. used below snippet. in android API 30, listener is triggered when keyboard is opened or closed. the same code not working in API level 29. ...
1 vote
1 answer
80 views
How to exclude a specific screen from WindowInsets applied on parent Composable
The problem is simple : We usually wrap our entire app with a scaffold at topmost parent like this : MyTheme { Scaffold { paddingWithInsets -> MyApp(modifier = Modifier.padding(...
3 votes
1 answer
105 views
What are "system bars" in Android?
There are several definitions: https://developer.android.com/develop/ui/views/layout/insets Together, the status bar and the navigation bar are called the system bars. https://developer.android.com/...
2 votes
2 answers
90 views
How to manage Android devices with rounded corners screens
For the migration to Android 16 of my app, I tested it on a virtual device with a screen that features large radius rounded corners. I found out my views were nibbled by the rounded corners. To avoid ...
3 votes
0 answers
367 views
In Edge to Edge Bottom button comes over keyboard
I have implemented edge to edge changes in ParentActivity ViewCompat.setOnApplyWindowInsetsListener(rootView, (v, insets) -> { Insets systemBars = insets.getInsets(WindowInsetsCompat.Type....
1 vote
5 answers
1k views
Scaffold content overlaps status bar on Android 15 jetpack compose
I'm using Jetpack Compose and recently enabled enableEdgeToEdge() in my MainActivity. After doing this, I noticed that the content inside my Scaffold is going behind the status bar on Android 15 (API ...
3 votes
1 answer
904 views
Window insets on dialogs jetpack compose
I have a app our company puts out and I can't seem to get the insets right for dialogs for Android 15 edge to edge. We have a NAvHost that navigates sometimes to composables and sometimes to dialogs. ...
0 votes
0 answers
93 views
How to change color of notification icons in status bar android 15?
How to change color of notification icons in status bar android 15? Please find below code: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) { getWindow().getDecorView()....
0 votes
0 answers
139 views
BottomNavigationView missing after implement WindowInsets listener
I try to implement window insets listener to listen keyboard show/hide on specific Fragment. It works well on the Fragment, but my Bottom Navigation is gone. Here is my Fragment XML. I add android:...
7 votes
4 answers
2k views
Edge-to-edge doesn't work when activity recreated or AppCompatDelegate.setDefaultNightMode() applied
I have this code for enabling edge-to-edge in my BaseActivity.kt class override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Log.d(Const.TAG_ACTIVITY, String....
6 votes
1 answer
745 views
Android issues regarding window insets returning 0
I've seen a lot of people struggling with the windowinsets in Android. The biggest problem is most of the time that there getting 0 returned as there value. I've had this issue too and found a ...
4 votes
1 answer
917 views
Android 15 forced fullscreen mode Google AdMob
I've adapted my activity to respect insets (system bars) using the common suggested approach (sharing for reference): ViewCompat.setOnApplyWindowInsetsListener(root, new OnApplyWindowInsetsListener() {...
2 votes
1 answer
1k views
How to properly handle Android Jetpack Compose Insets with IME
I’ve been trying to solve an inset with problem Jetpack Compose and I’m completely stuck. I’m having a hard time understanding what’s wrong with my implementation, as this was all very straightforward ...