Fixed
Status Update
Comments
ro...@google.com <ro...@google.com>
au...@google.com <au...@google.com>
ya...@google.com <ya...@google.com>
dn...@google.com <dn...@google.com> #2
Issue is fixed and released in Target-Support-26.0.0-beta1 support lib.
Description
Screencast is attached
Conditions:
Support library version: com.android.support:transition:24.2.0
Android version: any below API 19 KitKat
Lets say we have a view with 0.5 alpha. And applying Fade to hide it. It will animate from 1 to 0 instead of 0.5 to 1. And when we will show it again it will animate from 0 to 1 instead of from 0 to 0.5. In framework transitions it works fine because of new transitionAlpha property.
I've already fixed it in my backport library
We just need to precalculate it properly.
final float curAlpha = view.getAlpha();
startAlpha = curAlpha * startAlpha;
endAlpha = curAlpha * endAlpha;
Where initially startAlpha and endAlpha is a pair of 0 and 1 or 1 and 0.