Disable action bar in theme
This commit is contained in:
@@ -44,7 +44,6 @@ class MainActivity : AppCompatActivity(R.layout.main_activity) {
|
|||||||
configureNavGraph()
|
configureNavGraph()
|
||||||
viewModel.uiStateLive.observe(this, ::onUiStateChange)
|
viewModel.uiStateLive.observe(this, ::onUiStateChange)
|
||||||
binding.navigationView.setNavigationItemSelectedListener(::onNavigationItemSelected)
|
binding.navigationView.setNavigationItemSelectedListener(::onNavigationItemSelected)
|
||||||
supportActionBar?.hide()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun configureNavGraph() {
|
private fun configureNavGraph() {
|
||||||
|
|||||||
@@ -6,5 +6,8 @@
|
|||||||
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_screen</item>
|
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash_screen</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme" parent="Theme.Material3.DynamicColors.DayNight" />
|
<style name="AppTheme" parent="Theme.Material3.DynamicColors.DayNight">
|
||||||
|
<item name="windowActionBar">false</item>
|
||||||
|
<item name="windowNoTitle">true</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user