diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-03 22:14:23 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-03 22:14:23 +0200 |
commit | 7d5c374fd09bdeaf3acd2dca653e618ecd3e2c71 (patch) | |
tree | 8219358cd0ce1736ea0032fd5ad851f275abcc30 /src/main/res/animator | |
parent | 75f7ec90466e6cbfc4220bd59b78a6230dc8fef7 (diff) |
add animations
Diffstat (limited to 'src/main/res/animator')
-rw-r--r-- | src/main/res/animator/fade_left_in.xml | 15 | ||||
-rw-r--r-- | src/main/res/animator/fade_left_out.xml | 15 | ||||
-rw-r--r-- | src/main/res/animator/fade_right_in.xml | 15 | ||||
-rw-r--r-- | src/main/res/animator/fade_right_out.xml | 15 |
4 files changed, 60 insertions, 0 deletions
diff --git a/src/main/res/animator/fade_left_in.xml b/src/main/res/animator/fade_left_in.xml new file mode 100644 index 000000000..fa53b49c7 --- /dev/null +++ b/src/main/res/animator/fade_left_in.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:duration="200" + android:shareInterpolator="@android:anim/accelerate_decelerate_interpolator"> + <objectAnimator + android:propertyName="translationX" + android:valueFrom="-200" + android:valueTo="0" + android:valueType="floatType" /> + <objectAnimator + android:propertyName="alpha" + android:valueFrom="0" + android:valueTo="1" + android:valueType="floatType" /> +</set>
\ No newline at end of file diff --git a/src/main/res/animator/fade_left_out.xml b/src/main/res/animator/fade_left_out.xml new file mode 100644 index 000000000..af002f57d --- /dev/null +++ b/src/main/res/animator/fade_left_out.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:duration="200" + android:shareInterpolator="@android:anim/accelerate_decelerate_interpolator"> + <objectAnimator + android:propertyName="translationX" + android:valueFrom="0" + android:valueTo="-200" + android:valueType="floatType" /> + <objectAnimator + android:propertyName="alpha" + android:valueFrom="1" + android:valueTo="0" + android:valueType="floatType" /> +</set>
\ No newline at end of file diff --git a/src/main/res/animator/fade_right_in.xml b/src/main/res/animator/fade_right_in.xml new file mode 100644 index 000000000..497ebb465 --- /dev/null +++ b/src/main/res/animator/fade_right_in.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:duration="200" + android:shareInterpolator="@android:anim/accelerate_decelerate_interpolator"> + <objectAnimator + android:propertyName="translationX" + android:valueFrom="200" + android:valueTo="0" + android:valueType="floatType" /> + <objectAnimator + android:propertyName="alpha" + android:valueFrom="0" + android:valueTo="1" + android:valueType="floatType" /> +</set>
\ No newline at end of file diff --git a/src/main/res/animator/fade_right_out.xml b/src/main/res/animator/fade_right_out.xml new file mode 100644 index 000000000..3d83be942 --- /dev/null +++ b/src/main/res/animator/fade_right_out.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:duration="200" + android:shareInterpolator="@android:anim/accelerate_decelerate_interpolator"> + <objectAnimator + android:propertyName="translationX" + android:valueFrom="0" + android:valueTo="200" + android:valueType="floatType" /> + <objectAnimator + android:propertyName="alpha" + android:valueFrom="1" + android:valueTo="0" + android:valueType="floatType" /> +</set>
\ No newline at end of file |