deano2390 / MaterialShowcaseView

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

Getting single use for a sequence #93

Open ivanviragine opened 8 years ago

ivanviragine commented 8 years ago

Hi!

Finding itens by id is expensive, so we should have a getSingleUse method to tell us if the showcase sequence should be constructed or not. For example: user sees the view for the first time, we construct a sequence, he sees it. Next time, the lib will not show the sequence as it knows that it shouldn't show it, BUT, we would still construct the sequence, and we shouldn't. So a isFirstTime(boolean singleUseId) would be great.