CoordinatorBehaviorExample icon indicating copy to clipboard operation
CoordinatorBehaviorExample copied to clipboard

The ImageView has a bug when we scroll the contents quickly

Open edasich opened this issue 8 years ago • 4 comments

screenshot_1499278648 screenshot_1499278662

edasich avatar Jul 05 '17 18:07 edasich

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.

edasich avatar Jul 05 '17 18:07 edasich

set com.android.support:design version to 25.0.1

GalenLeo avatar Aug 27 '17 11:08 GalenLeo

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

anelfdz avatar Sep 27 '17 14:09 anelfdz

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

rakeshg147 avatar Dec 14 '17 08:12 rakeshg147