ForegroundViews icon indicating copy to clipboard operation
ForegroundViews copied to clipboard

Click location within the view is wrong

Open btdrucke opened this issue 10 years ago • 2 comments
trafficstars

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 avatar Jan 20 '15 19:01 btdrucke

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);
        }
    }

btdrucke avatar Jan 20 '15 19:01 btdrucke

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!

cesards avatar Jan 20 '15 21:01 cesards