Add slide-in animation when the Transactions items are loaded into the screen.

This commit is contained in:
Severiano Jaramillo 2018-12-18 08:51:45 -06:00
parent dc7decfb77
commit 89cf6f3df2
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="700">
<translate
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
android:fromYDelta="50%p"
android:toYDelta="0"/>
<alpha
android:fromAlpha="0"
android:toAlpha="1"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"/>
</set>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation
xmlns:android="http://schemas.android.com/apk/res/android"
android:animation="@anim/item_animation_from_bottom"
android:delay="15%"
android:animationOrder="normal"/>

View file

@ -12,6 +12,7 @@
android:padding="@dimen/card_margin" android:padding="@dimen/card_margin"
android:clipToPadding="false" android:clipToPadding="false"
tools:listitem="@layout/item_transaction" tools:listitem="@layout/item_transaction"
tools:itemCount="6"/> tools:itemCount="6"
android:layoutAnimation="@anim/layout_animation_from_bottom"/>
</LinearLayout> </LinearLayout>