Apply elevation overlay to colored navbar (#6308)

This commit is contained in:
Ivan Iskandar
2021-12-04 21:57:02 +07:00
committed by GitHub
parent 32f3a50def
commit 458a0e608a
4 changed files with 20 additions and 4 deletions
@@ -0,0 +1,10 @@
package com.google.android.material.bottomsheet
import android.view.View
/**
* Returns package-private elevation value
*/
fun <T : View> BottomSheetBehavior<T>.getElevation(): Float {
return elevation.takeIf { it >= 0F } ?: 0F
}