amlcurran / ShowcaseView

[Archived] Highlight the best bits of your app to users quickly, simply, and cool...ly
5.6k stars 1.29k forks source link

showcase is positioned behind cardviews #397

Closed sebastianperdomo closed 8 years ago

sebastianperdomo commented 8 years ago

I have 2 cardviews on my activity and when I want to show the showcase, it appears behind the cardviews.

Any solution for this ?

amlcurran commented 8 years ago

How strange - how are you showing them? It isn't in a dialog or anything?

If you could provide a screenshot this would be really useful

sebastianperdomo commented 8 years ago

here is the screenshot: look how the showcase is behind the cardview: the code is this:

ViewTarget navigationButtonViewTarget = ViewTargets.navigationButtonViewTarget(toolbar);
            new ShowcaseView.Builder(this)
                    .setTarget(navigationButtonViewTarget)
                    .singleShot(45)
                    .setContentText("Texttttt")
                    .build()
                    .show();

screenshot_2016-06-07-09-47-09

sebastianperdomo commented 8 years ago

but in another activity i have cardviews too and works perfect, is weird...

sebastianperdomo commented 8 years ago

solved !!! the problem was that it was putting the code (onCreate) before the controls are loaded, put it at the end and it works !!! sorry

amlcurran commented 8 years ago

Not a problem, glad you fixed it! 👍