Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arc doesn't show up from the second time when chained using setListener #2

Closed
ThinkingMonkey opened this issue Jun 16, 2016 · 1 comment

Comments

@ThinkingMonkey
Copy link

ThinkingMonkey commented Jun 16, 2016

example of how the SpotlightView are chained.

Just the arc does not show up. Line shows up perfectly fine.

new SpotlightView.Builder(Activity.this)
  .introAnimationDuration(400)
  .enableRevalAnimation(true)
  .performClick(true)
  .fadeinTextDuration(400)
  .headingTvColor(Color.parseColor("#ffffff"))
  .headingTvSize(32)
  .headingTvText("Title.")
  .subHeadingTvColor(Color.parseColor("#ffffff"))
  .subHeadingTvSize(16)
  .subHeadingTvText(Html.fromHtml("text"))
  .maskColor(Color.parseColor("#dc000000"))
  .target(findViewById(R.id.viewid))
  .lineAnimDuration(400)
  .lineAndArcColor(ContextCompat.getColor(Activity.this, R.color.colorPrimary))
  .dismissOnTouch(true)
  .usageId("Someid1")
  .setListener(new SpotlightListener() {
    @Override
    public void onUserClicked(String s) {
      new SpotlightView.Builder(Activity.this)
        .introAnimationDuration(400)
        .enableRevalAnimation(true)
        .performClick(true)
        .fadeinTextDuration(400)
        .headingTvColor(Color.parseColor("#ffffff"))
        .headingTvSize(32)
        .headingTvText("Title")
        .subHeadingTvColor(Color.parseColor("#ffffff"))
        .subHeadingTvSize(16)
        .subHeadingTvText("Text")
        .maskColor(Color.parseColor("#dc000000"))
        .target(findViewById(R.id.viewid))
        .lineAnimDuration(400)
        .lineAndArcColor(ContextCompat.getColor(Activity.this, R.color.colorPrimary))
        .dismissOnTouch(true)
        .usageId("Someid2")
        .setListener(new SpotlightListener() {
          @Override
          public void onUserClicked(String s) {
          }
        })
        .show();
    }
  })
  .show();
@29jitender
Copy link
Owner

29jitender commented Jun 17, 2016

For me it is working fine in both 6.0 and 4.1.1
I have done a minor change in SpotlightListener by notifying it after the previous exit animation is fixed.

Let me know if you are still facing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants