-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainActivity.kt
More file actions
26 lines (23 loc) · 902 Bytes
/
MainActivity.kt
File metadata and controls
26 lines (23 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.example.templei
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.activity.ComponentActivity
import androidx.activity.enableEdgeToEdge
import com.example.templei.ui.navigation.TopNavigation
/**
* Entry screen shell that routes to Screens 1-4.
*
* NOTE: This currently only does basic navigation wiring while each destination is under development.
*/
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_main)
// Shared top navigation wiring for every XML shell screen.
TopNavigation.bind(activity = this)
// Keep existing main menu grid buttons functional via shared nav binder as well.
TopNavigation.bindMainMenuGrid(activity = this)
}
}