adding some animation files
This commit is contained in:
parent
e17273b585
commit
ac8caa5432
4 changed files with 39 additions and 1 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.34.2'
|
||||
propVersionName = '5.34.3'
|
||||
kotlin_version = '1.4.31'
|
||||
}
|
||||
|
||||
|
|
24
commons/src/main/res/anim/item_animation_fall_down.xml
Normal file
24
commons/src/main/res/anim/item_animation_fall_down.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!-- animation based from https://stackoverflow.com/a/54668740/1967672 -->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="150">
|
||||
|
||||
<translate
|
||||
android:fromYDelta="-20%"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:toYDelta="0" />
|
||||
|
||||
<alpha
|
||||
android:fromAlpha="0"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:toAlpha="1" />
|
||||
|
||||
<scale
|
||||
android:fromXScale="105%"
|
||||
android:fromYScale="105%"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
android:toXScale="100%"
|
||||
android:toYScale="100%" />
|
||||
|
||||
</set>
|
5
commons/src/main/res/anim/layout_animation.xml
Normal file
5
commons/src/main/res/anim/layout_animation.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:animation="@anim/item_animation_fall_down"
|
||||
android:animationOrder="normal"
|
||||
android:delay="15%" />
|
9
commons/src/main/res/anim/slide_down.xml
Normal file
9
commons/src/main/res/anim/slide_down.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/decelerate_interpolator">
|
||||
|
||||
<translate
|
||||
android:duration="250"
|
||||
android:fromYDelta="0%p"
|
||||
android:toYDelta="110%p" />
|
||||
</set>
|
Loading…
Reference in a new issue