Flashbar
Flashbar copied to clipboard
The action button gets hidden under navigation bar on Tablet Devices using `Flashbar.Gravity.BOTTOM`
Summary
The action button gets hidden under the navigation bar when used in tablets, making them untapable.
- Library Version Tested:
1.0.1
and1.0.2
- OS Version:
6.0.1
,7.1.1
(Used emulator)
Screencast
Code Used
flashbar = Flashbar.Builder(this)
.gravity(Flashbar.Gravity.BOTTOM)
.title("Title")
.message("Message")
.backgroundColorRes(R.color.colorPrimaryDark)
.positiveActionText(R.string.btn_cta_preceed)
.negativeActionText(R.string.btn_cta_okay)
.positiveActionTextColorRes(R.color.colorAccent)
.negativeActionTextColorRes(R.color.colorAccent)
.positiveActionTapListener(object : Flashbar.OnActionTapListener {
override fun onActionTapped(bar: Flashbar) {
bar.dismiss()
}
})
.negativeActionTapListener(object : Flashbar.OnActionTapListener {
override fun onActionTapped(bar: Flashbar) {
bar.dismiss()
}
})
.build()
Might be related to https://github.com/aritraroy/Flashbar/issues/3
This happened with me too, but I'm trying to implement the flashbar on an activity with the transparent navigation bar, but the snackbar starts to appear exactly above the navigation bar when it should start to move from the bottom of the screen.
Also, there's a difference in behavior from lollipop to newer versions (Oreo), the nexus5x avd on the right is the lollipop one, on the left we have an oreo avd.

Got the same problem on my tablet. Anyone have a solution to fix this ?