This commit is contained in:
Bnyro 2022-07-08 16:43:32 +02:00
parent 525b636bb5
commit dbea7652ee

View File

@ -101,7 +101,7 @@ class MainActivity : AppCompatActivity() {
navController = findNavController(R.id.fragment)
binding.bottomNav.setupWithNavController(navController)
// gets the surface color for a elevation of 20dp
// gets the surface color of the bottom navigation view
val color = SurfaceColors.getColorForElevation(this, 10F)
// sets the navigation bar color to the previously calculated color