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

Click location within the view is wrong #2

Open
btdrucke opened this issue Jan 20, 2015 · 2 comments
Open

Click location within the view is wrong #2

btdrucke opened this issue Jan 20, 2015 · 2 comments

Comments

@btdrucke
Copy link

Thank you for this project. I am trying it out on Lollipop. I can get the new animated selector working for the foreground of a FImageView. The problem is that the expanding circle that should be centered around the user's tap is instead centered in the middle of the view.

@btdrucke
Copy link
Author

This worked for me, but I have not tested with different target build sdk versions:

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    @Override
    public void drawableHotspotChanged(float x, float y)
    {
        super.drawableHotspotChanged(x, y);

        if (foreground != null)
        {
            foreground.setHotspot(x, y);
        }
    }

@cesards
Copy link
Owner

cesards commented Jan 20, 2015

I'm gonna check it ASAP. Thank you! :-) I'm planning to add more documentation and uploading it to maven central, but I've been very busy last months!

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