MaterialShowcaseView icon indicating copy to clipboard operation
MaterialShowcaseView copied to clipboard

MaterialShowcaseView rendered behind DialogFragment

Open markusressel opened this issue 9 years ago • 12 comments

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

markusressel avatar Dec 11 '15 14:12 markusressel

:+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.

artworkad avatar Dec 14 '15 17:12 artworkad

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

David-Development avatar Jan 08 '16 09:01 David-Development

same here!!! Anybody found a workaround?

janngabriel avatar Feb 04 '16 14:02 janngabriel

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

ghost avatar Apr 25 '16 11:04 ghost

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

roshanrajaratnam avatar Apr 26 '16 13:04 roshanrajaratnam

If u want to know how to use on dialog , send eamil to [email protected] . It's inconvenient to write here , sorry.

androidddw avatar Feb 26 '18 09:02 androidddw

@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.

Keysaw avatar Mar 13 '18 12:03 Keysaw

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

androidddw avatar Mar 15 '18 09:03 androidddw

@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!

Keysaw avatar Mar 15 '18 09:03 Keysaw

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

androidddw avatar Mar 15 '18 14:03 androidddw

my dialog style has some item,as: a

if not : problem @Keysaw

androidddw avatar Mar 15 '18 15:03 androidddw

@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

ahmadmssm avatar Oct 05 '18 16:10 ahmadmssm