From 89cf6f3df22b5aa96f3c5d00d3baac723e79c745 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Tue, 18 Dec 2018 08:51:45 -0600 Subject: [PATCH] Add slide-in animation when the Transactions items are loaded into the screen. --- .../main/res/anim/item_animation_from_bottom.xml | 15 +++++++++++++++ .../res/anim/layout_animation_from_bottom.xml | 6 ++++++ app/src/main/res/layout/fragment_transactions.xml | 3 ++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/anim/item_animation_from_bottom.xml create mode 100644 app/src/main/res/anim/layout_animation_from_bottom.xml diff --git a/app/src/main/res/anim/item_animation_from_bottom.xml b/app/src/main/res/anim/item_animation_from_bottom.xml new file mode 100644 index 0000000..b7b874d --- /dev/null +++ b/app/src/main/res/anim/item_animation_from_bottom.xml @@ -0,0 +1,15 @@ + + + + + + + + diff --git a/app/src/main/res/anim/layout_animation_from_bottom.xml b/app/src/main/res/anim/layout_animation_from_bottom.xml new file mode 100644 index 0000000..6f90fed --- /dev/null +++ b/app/src/main/res/anim/layout_animation_from_bottom.xml @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_transactions.xml b/app/src/main/res/layout/fragment_transactions.xml index d895dc3..ac42770 100644 --- a/app/src/main/res/layout/fragment_transactions.xml +++ b/app/src/main/res/layout/fragment_transactions.xml @@ -12,6 +12,7 @@ android:padding="@dimen/card_margin" android:clipToPadding="false" tools:listitem="@layout/item_transaction" - tools:itemCount="6"/> + tools:itemCount="6" + android:layoutAnimation="@anim/layout_animation_from_bottom"/> \ No newline at end of file