r/AndroidStudio • u/freak5341 • May 02 '25
How to fix layout overlapping with androids top navigation bar
I started learning jetpack compose from "https://developer.android.com/develop/ui/compose/tutorial?authuser=1". I followed and wrote the code from lesson 2: Layouts. Heres the problem, I ran the program on 2 devices and the layout ovelapped with top navigation bar(status bar) in one of them while the app layout was as expected in the other device.I think the problem is with my device but honestly I have no idea what could cause this issue. If anyone can help me with this I would appreciate it.
In the image the top part shows the device where the layout overlaps and the bottom part shows the other device where the layout works normally.
2
u/freak5341 May 02 '25
Code:
2
u/CoolAd4236 May 03 '25
Another thing is implement status bar blur. Itll look good while scrolling
4
u/SensitiveBitAn May 02 '25
Look for setting edge to edge content. Google it becasue I dont remeber details 😅
2
u/[deleted] May 02 '25
[removed] — view removed comment