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

The ImageView has a bug when we scroll the contents quickly #37

Open
edasich opened this issue Jul 5, 2017 · 4 comments
Open

The ImageView has a bug when we scroll the contents quickly #37

edasich opened this issue Jul 5, 2017 · 4 comments

Comments

@edasich
Copy link

edasich commented Jul 5, 2017

screenshot_1499278648
screenshot_1499278662

@edasich
Copy link
Author

edasich commented Jul 5, 2017

Hello sir ,
First of all thank you for creating this really awesome UI but still has bug.
I appreciate that if you fix this bug.
Thanks in advance.

@GalenLeo
Copy link

set com.android.support:design version to 25.0.1

@anelfdz
Copy link

anelfdz commented Sep 27, 2017

I've solved this issue.

In the class AvatarImageBehavior, the method onDependentViewChanged should be changed like this:

@Override
public synchronized boolean onDependentViewChanged(CoordinatorLayout parent, CircleImageView child, View dependency) {
        ...
        if (expandedPercentageFactor < mChangeBehaviorPoint) {
            ....
            child.setX(mStartXPosition - distanceXToSubtract);
            if (distanceYToSubtract > (mStartYPosition - mFinalYPosition) + (mCustomFinalHeight / 2))
                distanceYToSubtract = (mStartYPosition - mFinalYPosition) + (mCustomFinalHeight / 2);
            child.setY(mStartYPosition - distanceYToSubtract);
            ...
      } 
      ...
}

@rakeshg147
Copy link

@anelfdz that solved the problem. Thank you very much.

paolorotolo added a commit to paolorotolo/CoordinatorBehaviorExample that referenced this issue Jan 29, 2018
paolorotolo added a commit to paolorotolo/CoordinatorBehaviorExample that referenced this issue Jan 29, 2018
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

4 participants