mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Merge pull request #2559 from Bnyro/splash-screen
Add splash screen animation for A12+
This commit is contained in:
commit
6bf51d9faf
44
app/src/main/res/drawable/splash_anim.xml
Normal file
44
app/src/main/res/drawable/splash_anim.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt">
|
||||
<aapt:attr name="android:drawable">
|
||||
<vector
|
||||
android:width="64dp"
|
||||
android:height="64dp"
|
||||
android:tint="?attr/colorSecondary"
|
||||
android:viewportWidth="1280"
|
||||
android:viewportHeight="1280">
|
||||
<group
|
||||
android:name="scaleGroup"
|
||||
android:pivotX="640"
|
||||
android:pivotY="640">
|
||||
<path
|
||||
android:fillColor="#000"
|
||||
android:pathData="M1130.145 639.54c0-6.202-3.236-11.865-8.358-14.831L225.77 93.247c-15.64-9.168-35.324 2.157-35.324 20.493v229.194c0 8.629 4.584 16.449 11.864 20.762l446.525 255.619c15.91 9.169 15.91 32.358 0 41.525L202.31 916.46c-7.28 4.315-11.864 12.135-11.864 20.763v228.925c0 18.336 19.684 29.93 35.324 20.493l895.747-532.271c5.122-3.236 8.359-8.898 8.359-14.83h0.269Z"
|
||||
android:strokeWidth="30"
|
||||
android:strokeColor="#000" />
|
||||
<path
|
||||
android:fillColor="#000"
|
||||
android:pathData="M373.802 625.518c11.325 6.471 11.325 22.92 0 29.391L174.807 769.507c-11.055 6.47-24.807-1.619-24.807-14.561V525.482c0-12.944 13.752-21.033 24.807-14.562l198.995 114.598Z" />
|
||||
</group>
|
||||
</vector>
|
||||
</aapt:attr>
|
||||
|
||||
<target android:name="scaleGroup">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="500"
|
||||
android:propertyName="scaleX"
|
||||
android:valueFrom="0.3"
|
||||
android:valueTo="0.55" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
<target android:name="scaleGroup">
|
||||
<aapt:attr name="android:animation">
|
||||
<objectAnimator
|
||||
android:duration="500"
|
||||
android:propertyName="scaleY"
|
||||
android:valueFrom="0.3"
|
||||
android:valueTo="0.55" />
|
||||
</aapt:attr>
|
||||
</target>
|
||||
</animated-vector>
|
@ -13,6 +13,8 @@
|
||||
|
||||
<item name="snackbarStyle">@style/snackBarStyle</item>
|
||||
|
||||
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="s">@drawable/splash_anim</item>
|
||||
|
||||
</style>
|
||||
|
||||
<style name="StartupTheme" parent="BaseTheme">
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
<item name="snackbarStyle">@style/snackBarStyle</item>
|
||||
|
||||
<item name="android:windowSplashScreenAnimatedIcon" tools:targetApi="s">@drawable/splash_anim</item>
|
||||
|
||||
</style>
|
||||
|
||||
<style name="StartupTheme" parent="BaseTheme">
|
||||
|
Loading…
x
Reference in New Issue
Block a user