public void AnimateTargetToPoint(MaterialShowcaseView showcaseView, Point point) { var set = new AnimatorSet(); var xAnimator = ObjectAnimator.OfInt(showcaseView, "showcaseX", point.X); var yAnimator = ObjectAnimator.OfInt(showcaseView, "showcaseY", point.Y); set.PlayTogether(xAnimator, yAnimator); set.SetInterpolator(_interpolator); set.Start(); }
public void OnShowcaseDetached(MaterialShowcaseView showcaseView, bool wasDismissed) { showcaseView.SetDetachedListener(null); /** * We're only interested if the showcase was purposefully dismissed */ if (!wasDismissed) { return; } _onItemDismissedListener?.Invoke(showcaseView, (int)_sequencePosition); /** * If so, update the prefsManager so we can potentially resume this sequence in the future */ if (_prefsManager != null) { _sequencePosition++; _prefsManager.SetSequenceStatus(_sequencePosition); } ShowNextItem(); }
public Builder(Activity activity) { _activity = activity; _showcaseView = new MaterialShowcaseView(activity); }
public MaterialShowcaseSequence AddSequenceItem(MaterialShowcaseView sequenceItem) { _showcaseQueue.Enqueue(sequenceItem); return(this); }