aritraroy/Flashbar

do not works with fragments

luciogj opened this issue · 3 comments

can t show inside fragment

You need to provide more information on what you tried and what problem you exactly faced.

I want to use Flashbar in fragment activity, how? I am using NavigationBottombar with fragment.

I want to use Flashbar in fragment activity, how? I am using NavigationBottombar with fragment.

Flashbar.Builder(requireActivity())
.gravity(Flashbar.Gravity.TOP)
.title("Hello World!")
.message("You can show the progress bar on either the left or right side of the view")
.showProgress(Flashbar.ProgressPosition.LEFT)
.build()

A problem I'm having is related to this perhaps. When I'm showing a DialogFragment and a Flashbar in the same time, the (usual) semi-transparent grey curtain of the DialogFragment is covering the Flashbar, thus making it hard to read.

image

I wonder if there is any way to make the Flashbar attach to the root view of the FragmentDialog (whatever that may be) so that it shows up on top of the grey curtain.