diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-19 12:48:40 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-19 14:11:18 +0530 |
commit | eb5a30c3a9f1474e452d28032c238cc3738eb3d8 (patch) | |
tree | f368ef9fab91f5e09eafb96ad532b2aef1f856bd /app/src/main/res/anim | |
parent | e5d178ea3ca29367593bfc92e8f95e17dcaba459 (diff) |
PasswordFragment: animate FAB in action mode
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/anim')
-rw-r--r-- | app/src/main/res/anim/scale_down.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/anim/scale_up.xml | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/app/src/main/res/anim/scale_down.xml b/app/src/main/res/anim/scale_down.xml new file mode 100644 index 00000000..b6ece430 --- /dev/null +++ b/app/src/main/res/anim/scale_down.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" > + <scale + android:duration="300" + android:fromXScale="1.0" + android:fromYScale="1.0" + android:interpolator="@android:anim/linear_interpolator" + android:pivotX="50%" + android:pivotY="50%" + android:toXScale="0" + android:toYScale="0" /> +</set> diff --git a/app/src/main/res/anim/scale_up.xml b/app/src/main/res/anim/scale_up.xml new file mode 100644 index 00000000..07dd5787 --- /dev/null +++ b/app/src/main/res/anim/scale_up.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" > + <scale + android:duration="300" + android:fromXScale="0" + android:fromYScale="0" + android:interpolator="@android:anim/linear_interpolator" + android:pivotX="50%" + android:pivotY="50%" + android:toXScale="1.0" + android:toYScale="1.0" /> +</set> |