LibreTube/app/src/main/java/xyz/btcland/libretube/MainActivity.kt

17 lines
672 B
Kotlin
Raw Normal View History

2021-12-09 18:01:40 +05:30
package xyz.btcland.libretube
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
2021-12-09 18:25:32 +05:30
import android.support.design.widget.BottomNavigationView
import androidx.navigation.findNavController
import androidx.navigation.ui.setupWithNavController
2021-12-09 18:01:40 +05:30
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
2021-12-09 18:25:32 +05:30
val bottomNavigationView = findViewById<BottomNavigationView>(R.id.bottomNav)
val navController = findNavController(R.id.fragment)
bottomNavigationView.setupWithNavController(navController)
2021-12-09 18:01:40 +05:30
}
}