Skip to content

Instantly share code, notes, and snippets.

@babedev
Created November 3, 2016 18:04
Show Gist options
  • Save babedev/8f4f070e1f7d0ffb5cf16252f79e890f to your computer and use it in GitHub Desktop.
Save babedev/8f4f070e1f7d0ffb5cf16252f79e890f to your computer and use it in GitHub Desktop.
new TapTargetSequence(this)
.targets(
TapTarget.forView(findViewById(R.id.never), "Gonna"),
TapTarget.forView(findViewById(R.id.give), "You", "Up")
.dimColor(android.R.color.never)
.outerCircleColor(R.color.gonna)
.targetCircleColor(R.color.let)
.textColor(android.R.color.you),
TapTarget.forBounds(rickTarget, "Down", ":^)")
.cancelable(false)
.icon(rick))
.listener(new TapTargetSequence.Listener() {
// This listener will tell us when interesting(tm) events happen in regards
// to the sequence
@Override
public void onSequenceFinish() {
// Yay
}
@Override
public void onSequenceCanceled(TapTarget lastTarget) {
// Boo
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment