deano2390 / MaterialShowcaseView

A Material Design themed ShowcaseView for Android
Apache License 2.0
2.71k stars 526 forks source link

MaterialShowcaseView rendered behind DialogFragment #51

Open markusressel opened 8 years ago

markusressel commented 8 years ago

Hey there, great Library so far but I have a problem wich im not able to fix myself. I have a custom DilaogFragment in my App and I'm trying to display a showcaseView on it, but it is always render behind the dialog window (the blue tint around the dialog view).

photo_2015-12-11_15-48-09

I tried to bring the view to the front using

MaterialShowcaseView materialShowcaseView = new MaterialShowcaseView.Builder(getActivity())
     {...}
materialShowcaseView.bringToFront();
materialShowcaseView.show(getActivity());

and executing the code in a .post(Runnable {}) method but it is still rendered behind the Dialog. Any ideas how I could possibly fix this?

My project is available at https://github.com/Power-Switch/PowerSwitch_Android and the specific classes I'm talking about are ConfigureReceiverDialog and ConfigureReceiverDialogPage1NameFragment

artworkad commented 8 years ago

:+1: same problem. I think it has something to do with the fact that the showcase view uses the activity's root view to present itself.

David-Development commented 8 years ago

:+1: same problem. Any updates on this?

janngabriel commented 8 years ago

same here!!! Anybody found a workaround?

ghost commented 8 years ago

I am also facing the same problem. Has anyone found any workaround to this?

roshanrajaratnam commented 8 years ago

Love the library except the fact that it renders behind a dialog fragment!

androidddw commented 6 years ago

If u want to know how to use on dialog , send eamil to xiao_adkf@163.com . It's inconvenient to write here , sorry.

Keysaw commented 6 years ago

@androidddw Not sure why it could be "inconvenient" to explain how to do it if you know how... But I agree that it could be very helpful to add a way of putting the showcase on top of everything, including DialogFragments.

androidddw commented 6 years ago

Sorry, use "inconvenient"is not very accurate, I just didn't know how to put my answer on. And I'm trying.

Keysaw commented 6 years ago

@androidddw Ok no problem, I was just very interested in finding a solution, since I use this library mainly for DialogFragments. I don't have enough time (or skills) to search for a workaround, but thanks for trying!

androidddw commented 6 years ago

source_code add_code Add three method for dialog and dialogfragment ,but the most important is use specific dialog style

androidddw commented 6 years ago

my dialog style has some item,as: a

if not : problem @Keysaw

ahmadmssm commented 6 years ago

@androidddw
Regarding the last screenshot you added, Is there any way to make the mask cover that lower part of the dialog too ?? I already set a custom style like your style but still no change