deano2390 / MaterialShowcaseView

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

Recalculate ShowcaseView position? #133

Closed haldertaer closed 7 years ago

haldertaer commented 7 years ago

How can I recalculate an already existing ShowcaseView's position? In my case, I have a view that changes position from time to time.

Is there something similar to MaterialShowcaseView.recalculate(); ?

My code now:

new MaterialShowcaseView.Builder(this)
    .setTarget(mButtonShow)
    .setDismissText("GOT IT")
    .setContentText("This is some amazing feature you should know about")
    .setDelay(withDelay) // optional but starting animations immediately in onCreate can make them choppy
    .singleUse(SHOWCASE_ID) // provide a unique ID used to ensure it is only shown once
    .show();