Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
The splash screen is dismissed as soon as the app is drawn and doesn't wait for the animation to finish which might be the reason why the animation doesn't repeat.
At most, the icon will animate for the value set in windowSplashScreenAnimationDuration
.
If that's not the case, can you please share your theme values and icon file? or at least a reproduction sample?
da...@gmail.com <da...@gmail.com> #3
windowSplashScreenBackground is #fff and #000 for dark theme.
The animation duration of Animated Vector Drawable is 1600.
I might not be able to share the icon since it is the one we are going to use in production. Is there any working Animated Vector Drawable you can provide from your side for us to compare? Anything from unit test?
gs...@gmail.com <gs...@gmail.com> #4
we...@gmail.com <we...@gmail.com> #5
In the <objectAnimator
tag, you need the repeat*
attributes
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:valueTo="200"
android:valueType="floatType"
android:propertyName="y"
android:repeatCount="1"
android:repeatMode="reverse"/>
ju...@gmail.com <ju...@gmail.com> #6
ca...@google.com <ca...@google.com>
wi...@google.com <wi...@google.com> #7
wi...@google.com <wi...@google.com> #8
In that case, you'd need to manually make you application repeat using other ObjecAnimator. Since the splash screen is supposed to be short lived, an animation shouldn't need to be repeated.
If the loading time of your application is too high and require the use of some progress indicator, then I suggest to implement that in the app directly, ideally using skeletons loaders (
ar...@gmail.com <ar...@gmail.com> #9
ca...@digitalchargingsolutions.com <ca...@digitalchargingsolutions.com> #10
That's definitely something worth discussing internally, I've added it to the list of thing to consider for the next version. Thanks for your feedback.
wi...@google.com <wi...@google.com> #11
we should fix it, but haven't find time to do that.
su...@fisglobal.com <su...@fisglobal.com> #12
ca...@digitalchargingsolutions.com <ca...@digitalchargingsolutions.com> #13
Bump, it would be nice to have this worked on...
ki...@protonmail.com <ki...@protonmail.com> #14
af...@vexiza.com <af...@vexiza.com> #15
Since the inclusion of the SplashScreen is mandatory, and not being able to use a brand image... this limits the functionality that we had previously.
We have to implement actions not recommended in the documentation, such as having the SplashScreen and having a custom screen as well. No sense...
wi...@google.com <wi...@google.com>
es...@oracle.com <es...@oracle.com> #16
ca...@digitalchargingsolutions.com <ca...@digitalchargingsolutions.com> #17
Unfortunately the Splash Screen APIs (& the compat lib) are becoming a meme in the Android dev community...
It's strongly suggested we use this lib and then Google basically treats it as feature complete or deprecated (depends on how you see it) without ever having feature completed it. I don't want to only be negative, so hey, I and others would be happy if this would be improved :).
fa...@gmail.com <fa...@gmail.com> #18
jo...@gmail.com <jo...@gmail.com> #19
I'm using windowBackground
as a fallback as ?android:actionBarSize
.
Description
Component used: core-splashscreen Version used: 1.0.0 Devices/Android versions reproduced on: Samsung S10, Android 11
I'm trying to create a backwards compatible splash screen, I understand that from this documentation that:
However I don't seem to be able to use
windowSplashScreenBrandingImage
either as it's missing from the attrs file in the core-splashscreen library. Is this something that can be introduced in an update to the splashscreen library or will it also be unsupported pre-31?