-
Notifications
You must be signed in to change notification settings - Fork 45
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
ImageViews with KyrieDrawables disappear during Transitions #24
Comments
Thanks for reporting! I will look into it tonight! It would be helpful if you could post a Also, were you able to reproduce this issue on only certain APIs? i.e. Does it also happen on API 21 for example? |
My suspicion is that it is because of this line of code: https://github.com/alexjlockwood/kyrie/blob/master/kyrie/src/main/java/com/github/alexjlockwood/kyrie/KyrieDrawable.kt#L239 I think we can probably just remove that |
Here's the zip file with the project I've tried API 25 / 27 / 28 and Q and all have the same behavior. Haven't tried the minimum (21) |
Just published |
With
implementation 'com.github.alexjlockwood:kyrie:0.2.0'
I have run into an issue where the ImageViews that have a
KyrieDrawable
disappear when running aTransition
throughTransitionManager.beginDelayedTransition()
. To better observe this behavior (bug?) I have recorded the following two gifs:With
val drawable = KyrieDrawable.create(context, resId)
With
val drawable = AppCompatResources.getDrawable(context, resId)
:As you can see, when using Kyrie, the image disappears before the transition is done, but that doesn't happen using AndroidX's vector drawables.
The full code :
MainActivity.kt
activity_main.xml
view_one.xml
view_two.xml
ic_android_black_24.dp.xml
The text was updated successfully, but these errors were encountered: