Monday, 16 December 2024

What to if your compose screen starts from status bar in android jectpack compose UI.

 1. How to correct if our screen overlap on status bar of screen in android.For example like below image

Box(Modifier.safeDrawingPadding()){
Column {
Text(text = "Heloo my all android friends")
Text(text = "World is good if you are good")
}
}

Just add Box(Modifier.safeDrawingPadding()){
//add rest of your code of UI
}



No comments:

Post a Comment

how to change status bar color in jectpack compose.

 Step1: Go to MainActivity and do following: enableEdgeToEdge ( statusBarStyle = SystemBarStyle .light( Color . Green .h...