Skip to content

Commit

Permalink
Fixed edge to edge
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Jun 18, 2024
1 parent 18ac5b8 commit f8ea865
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
package no.nordicsemi.android.common.test

import android.annotation.SuppressLint
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxHeight
Expand Down Expand Up @@ -111,8 +113,9 @@ class MainActivity : NordicActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

setDecorFitsSystemWindows(false)
enableEdgeToEdge() // <- This is the Way.
enableEdgeToEdge(
statusBarStyle = SystemBarStyle.dark(Color.TRANSPARENT)
)

val menuItems = listOf(
Item("Main", Tabs, Icons.Filled.Verified),
Expand Down

0 comments on commit f8ea865

Please sign in to comment.