Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Created December 20, 2023 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KatieBarnett/605eb37308c5cbeeb3fd1740ff55fa3f to your computer and use it in GitHub Desktop.
Save KatieBarnett/605eb37308c5cbeeb3fd1740ff55fa3f to your computer and use it in GitHub Desktop.
Edge to edge basic
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Add this line to enable edge-to-edge
enableEdgeToEdge()
setContent {
MainScreen()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment