deano2390 / MaterialShowcaseView

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

Cannot draw Canvas over navigation bar #179

Closed Khosbayar closed 3 years ago

Khosbayar commented 4 years ago

Does anyone know how to draw canvas with full height including navigation bar? It doesn't overdraw even I set canvas bitmap's height for full (measured height + navigation bar height).

Screenshot_20190807-183812

haldertaer commented 4 years ago

I'm having the same issue. Does anyone know how to solve this?

adamGT commented 4 years ago

I'm having the same issue. Does anyone know how to solve this?

if your using it as a user guide,I recommend to try another method like a quick Tutorial gif , that's what I did, but if you need this library, You can create a child class which extends MaterialShowcaseView and override all of it and change the 319 line(contentLP.bottomMargin = mBottomMargin;) ot (contentLP.bottomMargin = 0;). It have major disadvantages but that would be a quick fix.

Ryanhustler420 commented 4 years ago

use .renderOverNavigationBar() chain method.

` String[] ids = new String[]{"one", "two"};

    // single example
    new MaterialShowcaseView.Builder(this)
            .setTarget(findViewById(R.id.fetch_button))
            .setDismissText("GOT IT")
            .setContentText("Smash this button to see all the products of this shop.")
            .setDelay(1000) // optional but starting animations immediately in onCreate can make them choppy
            .singleUse(ids[0]) // provide a unique ID used to ensure it is only shown once
            .renderOverNavigationBar()
            .setMaskColour(getResources().getColor(R.color.colorAccent))
            .show();

`