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

Drawee scaletype transition #1224

Closed

Conversation

burzumrus
Copy link

As mentioned in #22 ChangeImageTransform for DraweeViews is not working correctly, when ScaleType is changing during transition. This pull request resolve this issue by added custom DraweeTransform, which animates ScaleType transition correctly

InterpolatingScaleType is changed by adding start and end values of parentBounds. In pervious version it used parameter parentBounds, which changing every animation frame and it caused wrong animation behaviour. When start and end matrix is captured, there is no need to calculate it every frame, so there is also little performance improvement

Transition sample is changed due to use DraweeTransform. Also background was added in sample image, to show how animation works

@burzumrus burzumrus closed this May 17, 2016
@burzumrus burzumrus deleted the drawee-scaletype-transition branch May 17, 2016 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants