Skip to content

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

Open

Description

@edasich

screenshot_1499278648
screenshot_1499278662

Activity

  1. edasich commented on Jul 5, 2017

    @edasich
    Author

    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.

  2. GalenLeo commented on Aug 27, 2017

    @GalenLeo

    set com.android.support:design version to 25.0.1

  3. anelfdz commented on Sep 27, 2017

    @anelfdz

    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);
                ...
          } 
          ...
    }
    
  4. rakeshg147 commented on Dec 14, 2017

    @rakeshg147

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

  5. added 2 commits that reference this issue on Jan 29, 2018
    1b0839d
    2099e35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions