You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all awesome library! It's basically what I was looking for!!
On the other hand, I am trying to make multiple MaterialTapTargetPrompt showing up one after the other using MaterialTapTargetPrompt.show(); in onHidePromptComplete but it does nothing.
It's a known bug or am I doing it wrong?
The text was updated successfully, but these errors were encountered:
Great to hear the library is just what you wanted.
It should be possible to create a new prompt in the onHidePromptComplete method.
There is currently no support for reusing a prompt.
The example below creates a second prompt after the first is removed from view, hopefully this solves the issue:
new MaterialTapTargetPrompt.Builder(MainActivity.this)
.setTarget(findViewById(R.id.fab))
.setPrimaryText("Send your first email")
.setSecondaryText("Tap the envelop to start composing your first email")
.setAnimationInterpolator(new FastOutSlowInInterpolator())
.setOnHidePromptListener(new MaterialTapTargetPrompt.OnHidePromptListener()
{
@Override
public void onHidePrompt(MotionEvent event, boolean tappedTarget)
{
}
@Override
public void onHidePromptComplete()
{
new MaterialTapTargetPrompt.Builder(MainActivity.this)
.setTarget(findViewById(R.id.fab))
.setPrimaryText("Send your second email")
.setSecondaryText("Tap the envelop to start composing your second email")
.setAnimationInterpolator(new FastOutSlowInInterpolator())
.show();
}
})
.show();
Hey,
First of all awesome library! It's basically what I was looking for!!
On the other hand, I am trying to make multiple MaterialTapTargetPrompt showing up one after the other using MaterialTapTargetPrompt.show(); in onHidePromptComplete but it does nothing.
It's a known bug or am I doing it wrong?
The text was updated successfully, but these errors were encountered: