57 questions
0
votes
0
answers
40
views
Android: Content is hidden behind the app bar in edge-to-edge mode
I am trying diligently to update my app to API 35 with edge-to-edge support. I've tried to follow the official Android documentation here: https://developer.android.com/develop/ui/views/layout/edge-to-...
1
vote
0
answers
26
views
Android "isAppearanceLightNavigationBars" Doesn't Work on API 36
Goal: change system navigation bar icon color from black (dark) to white (light)
Tried: WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightNavigationBars = false
Device: Samsung Z ...
0
votes
1
answer
60
views
Does enableEdgeToEdge() override windowOptOutEdgeToEdgeEnforcement flag?
I'm working with Android 15's edge-to-edge enforcement and need clarification on how enableEdgeToEdge() interacts with the windowOptOutEdgeToEdgeEnforcement theme attribute.
Setup
In my theme:
<...
0
votes
0
answers
240
views
Enable edge to edge display is not working if Shell has Flyout behavior in MAUI app
I have developed MAUI app using Visual Studio 2022 v 17.14.16 and .NET 9 framework.
To enable edge to edge I have done this with below code in MainActivity.cs file.
protected override void OnCreate(...
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 ...
-1
votes
1
answer
100
views
Edge to edge display [closed]
In a FragmentActivity, I try to set insets to correct the edge to edge appearance of my app. To do this, I copy the following code taken from Edge to edge display in my onCreate function :
...
0
votes
1
answer
511
views
Edge to Edge Android 16 API 36 BottomSheetDialogFragment Problems Solutions
I have a question. I would like to disable the edge-to-edge padding in BottomSheetDialogFragment().
I’ve currently done it like this. I should mention that we have to handle onConfigurationChange for ...
3
votes
0
answers
219
views
How to use/make adjustPan behavior with my activities when compile SDK is 36 and edge-to-edge enabled by default
I struggle with a edge-to-edge issue and it seems impossible to me.
I have the feelings Google devs have forgotten something for this update… Maybe this is just a skill issue from my side.
Since ...
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(...
0
votes
0
answers
126
views
Android Studio Supporting Edge-to-Edge On Android 15+ with RelativeLayout Programmatically
I have a view which is fully coded in Java
public class SurvivorLayout extends RelativeLayout {
public SurvivorLayout(Context context, final List<Survivor> list) {
super(context);
...
2
votes
0
answers
206
views
API 35 - Keyboard no longer auto-resizes view or scrolls to cursor
In Android API < 35, when tapping an EditText inside a ScrollView, the system automatically:
Kept the cursor visible
Resized the view
Showed the keyboard without layout glitches
Example (pre-API ...
1
vote
2
answers
352
views
API 35 - Handle edge-to-edge in PreferenceFragmentCompat during landscape mode
I am working on edge-to-edge, API 35, for a Material 2, Java Android project.
I use the following guideline when performing edge-to-edge setup
AppBarLayout = android:fitsSystemWindows="true"...
0
votes
0
answers
180
views
API 35 - Edge-to-edge issue for DrawerLayout/ NavigationView during landscape mode
I am working on edge-to-edge, API 35, for a Material 2, Java Android project.
I use the following guideline when performing edge-to-edge setup
AppBarLayout = android:fitsSystemWindows="true"...
1
vote
1
answer
63
views
Compose LazyColumn vs Column padding differs
When using the LazyColumn the navigation bar presents a translucent style, when using Box or a Column the navigation bar appears to be opaque, why is this difference? Shouldn't the navigation bar be ...
1
vote
1
answer
116
views
Is ComponentActivity required to handle Edge-to-Edge correctly on Android?
This code:
public class TestActivity extends Activity {
//onCreate
EdgeToEdge.enable(this);
}
produces compiler error
Required type: ComponentActivity, Provided: TestActivity
...
0
votes
0
answers
47
views
Dimensions.get('window').height doesn't include StatusBar.currentHeight when the Status Bar is translucent
I set the StatusBar to translucent in order to draw the app's content under the status bar (on Android 14 and earlier — Android 15 enforces edge-to-edge design by default).
According to the React ...
0
votes
0
answers
53
views
How to Prevent Fullscreen Overlap with Status Bar on Android 14+ [duplicate]
I tried running my Android application on newer SDK versions (like API 35), and I noticed that the app is now displaying in full screen — even drawing content under the system status bar. Previously, ...
1
vote
1
answer
125
views
ScrollView contents below navigation bar
I'm struggling with the new edge-to-edge display introduced by default with SDK 36. My scroll view contents are behind the navigation bar even when scrolled to the bottom.
I had a look at the "...
2
votes
2
answers
1k
views
Since Android API version 35, upper part of layout is hidden behind Action bar
I have the following problem in my application in Android API Version 15
The beginning of the layout is not visible because it is hidden behind the action bar
When I add a top margin, it will show ...
0
votes
1
answer
342
views
Android 15 - setOnApplyWindowInsetsListener code - cannot resolve method getInsets
I am trying to implement the following code to handle Insets in Android 15 targeting API level 35:
ViewCompat.setOnApplyWindowInsetsListener(gridView, (v, windowInsets) -> {
Insets insets = ...
1
vote
2
answers
363
views
Layout drawing behind status and navigation bars after upgrading target SDK from 34 to 35 in NativeScript app
I'm developing a NativeScript application and recently upgraded my target SDK from 34 to 35 (Android 15 Preview). After this change, I noticed that the app layout started drawing behind the status bar ...
3
votes
0
answers
370
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
2
answers
97
views
System bar paddings are not applied to FloatingActionButton in landscape orientation - how to fix it?
System bar paddings are not applied to FloatingActionButton in landscape orientation even though composable is placed into Scaffold and contentWindowInsets of Scaffold set to WindowInsets.safeDrawing. ...
1
vote
1
answer
628
views
Android 35 and edge-to-edge: black navigation bar
I'm trying to set the compileSdkVersion to 35 and handling the new edge-to-edge requirement.
Project is a quite large project that started in 2012, so it's using Java/Views (no compose, no Kotlin).
...
2
votes
0
answers
152
views
Flutter edge-to-edge app not displaying contents behind a translucent system bar. How to fix?
My Flutter app already uses compileSdk and targetSdkVersion of 35, and I am using Android Virtual Device (AVD) of API level 35. (So, I am sure they are edge-to-edge capable?!) I started out my apps at ...
0
votes
0
answers
138
views
Scrollview issue with new android edge to edge
I'm facing an issue with ScrollView in my newly created Android app. Previously, ScrollView worked perfectly in my projects, but now with the introduction of Edge-to-Edge in Android, ScrollView is not ...
-1
votes
1
answer
163
views
Edge-to-edge padding insets in dark theme
I'm having issues with edge-to-edge and OS Dark Theme. I'm using Modifier.safeDrawingPadding() It is explained here.
this ensures that interactable elements don't overlap with the system
UI, it also ...
7
votes
1
answer
5k
views
How to solve edge-to-edge uses of deprecated APIs or parameters?
I am unable to get rid of this error.
Could anyone please suggest me what shall I do?
Screenshot of the error generated by google play console:
Here is the code snippet:
SystemUiOverlayStyle ...
1
vote
2
answers
1k
views
jetpack compose edgetoedge issue
I create an jetpack compose app target at api 35 which has bottom navigation.In MainActivity.kt, I have
enableEdgeToEdge(
statusBarStyle = SystemBarStyle.light(Color.TRANSPARENT, Color....
0
votes
1
answer
146
views
How to set drawable as background for AppBarLayont with edge-to-edge mode?
I need to set a gradient as the background of the AppBarLayout. The issue being that the title overlays the status bar when the edge-to-edge mode is enabled. If fitsSystemWindows is set, white space ...
1
vote
1
answer
383
views
Edge-to-Edge in Android Libraries
I have a video player library and currently is experiencing issues with the enforced Edge-to-Edge.
Video controls and other views go behind the navigation bar and app bar.
I want to solve this issue ...
7
votes
1
answer
512
views
Is there a way to force the system navigation bar foreground colour (light/dark) in API 35?
I've used various fragments where the entire background (fullscreen) is a single colour - say green. This has worked well on every version up until API 35, which introduced this EdgeToEdge ...
0
votes
0
answers
169
views
MaterialToolbar doesn't work properly with edge-to-edge
I am trying to make my MaterialToolbar fill the system bar with its background color. From what I understand, this should work automatically on SDK 35 without any additional actions. However, I’m ...
7
votes
0
answers
1k
views
What is the replacement for deprecated APIs related to edge-to-edge in Android 35+?
In my Android app, I am currently using the following deprecated APIs for edge-to-edge and system UI customizations:
android.view.Window.setDecorFitsSystemWindows
android.view.Window.setStatusBarColor
...
0
votes
1
answer
307
views
In API 35 Layer Elements not move down below the status bar
How could I disable edge-to-edge in API 35 so that layer elements is missing in the status bar,
or how to set top margins for elements ( android:layout_marginTop ) below of the status bar?
Height of ...
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....
2
votes
1
answer
1k
views
How to layout a webview for Android 15 edge to edge
I have an app consisting only of a webview. I'm trying it to update for Android 15 with edge to edge.
Below the current code from layout/webview.xml and MainActivity.kt.
It worked well on Android 14.
&...
0
votes
1
answer
456
views
fix top appbar color when scrolling after implementing edge to edge
After adding top.inset to top appbar the statusbar has some kind of lag when scrolling and it changes colors. How can I solve this?
override fun onCreate(savedInstanceState: Bundle?) {
super....
-1
votes
1
answer
985
views
edge to edge in jetpack compose does not implied to navigation bar
i want to make my app edge to edge . i call enableEdgeToEdge() and my screen extends over statusBar but not navigationBar . my screen layout doesn't go under the navigation bar . shouldn't edge to ...
16
votes
3
answers
20k
views
Android 15. Edge to edge mode hide a top View
I have a Pixel 6 device and updated today Android version to 15.
I test a simple activity for Android 15 and see that a part of top TextView is hiden.
I guess this is a bug of edge-to-edge mode.
How ...
5
votes
3
answers
3k
views
Edge to Edge issue with Stripe UI - Android
In Android 15, edge-to-edge mode is enabled by default, and I am unable to disable it. I'm using the Stripe Payment Drop-in UI, but the issue I'm facing is that the activity is covering both the ...
22
votes
4
answers
27k
views
Trying to understand edge to edge in Android
After updating my SDK to version 35, I noticed that my app's UI now starts directly from the top of the display, including behind the status bar. Previously, the design started below the status bar. ...
0
votes
1
answer
58
views
RelatvieLayout's centerInParent doesn't work right with WindowInsetPadding
I set the centerInParent option to true for rl_container, which has a parent RelativeLayout.
but even though the width and height of rl_container are match_parent, it doesn't fill the screen as shown ...
5
votes
1
answer
3k
views
How to set Dialog Fragment to fullscreen (EdgeToEdge)
Developing for Android 13, I can make the activity to fullscreen by using EdgeToEdge.enable((ComponentActivity) this); . But for a dialog no matter how I tried, like https://stackoverflow.com/a/...
2
votes
0
answers
2k
views
How to Enable Edge-to-Edge Display Only for Specific Fragment in Android with Bottom Navigation?
I'm working on an Android app with an activity that contains a bottom navigation bar and three fragments. I want my HomeFragment to have an edge-to-edge display, but when I enable edge-to-edge mode in ...
0
votes
2
answers
4k
views
How to create edgetoedge mode of Flutter like Android Native
How to get perfect fullscreen (edge to edge) mode for flutter?
With native, it's very easy to do the image below, the target is the statusbar, the system only displays text, icons, and the bottom ...
4
votes
1
answer
9k
views
In Android Studio what is enableEdgeToEdge() in activity?
I am still using xml for view but when now I create a new activity it auto fills the enableEdgeToEdge. I am not sure what it is and what's the use of it can I remove it will that affect the activity
I ...
1
vote
1
answer
1k
views
Display modal bottom sheet above system navigation bar in flutter
I would like to display a modal bottom sheet above the system navigation bar when using edge-to-edge display.
I mean the system navigation bar and the bottom navigation bar.
Here is how I set up the ...
1
vote
1
answer
2k
views
In Jetpack Compose, enabling enableEdgeToEdge with WindowInsets(0.dp) glitches statusbar padding at start
While rendering the first frame of an edge-to-edge application with Jetpack Compose, the height of the statusbar is ignored, resulting in jerking of UI. How to solve this?
First vs next frames:
This ...
2
votes
1
answer
2k
views
How to determinate edge-to-edge enabled?
How to determine in my fragment that in activity enabled edge-to-edge with function
WindowCompat.setDecorFitsSystemWindows(window, false)
Any ideas?
Is it possible to get the value of WindowCompat....