cloudstream/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt

25 lines
1.1 KiB
Kotlin
Raw Normal View History

2021-04-30 17:20:15 +00:00
package com.lagradost.cloudstream3
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupWithNavController
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val navView: BottomNavigationView = findViewById(R.id.nav_view)
val navController = findNavController(R.id.nav_host_fragment)
// Passing each menu ID as a set of Ids because each
// menu should be considered as top level destinations.
val appBarConfiguration = AppBarConfiguration(setOf(
2021-05-12 21:51:02 +00:00
R.id.navigation_home, R.id.navigation_search, R.id.navigation_notifications))
2021-04-30 17:20:15 +00:00
//setupActionBarWithNavController(navController, appBarConfiguration)
navView.setupWithNavController(navController)
}
}