deano2390 / MaterialShowcaseView

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

MaterialShowcaseSequence should reuse single inflated view #140

Open CapnSpellcheck opened 7 years ago

CapnSpellcheck commented 7 years ago

No real reason to inflate an identical view hierarchy for each sequence item!

Instead of a queue of MaterialShowcaseView it could have one MaterialShowcase view instantiated at the start of the sequence, then a queue of MaterialShowcaseSequenceItem and after dismiss animation, reconfigure the view state from sequence item model.