aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/anim
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/anim')
-rw-r--r--WordPress/src/main/res/anim/activity_slide_in_from_left.xml11
-rw-r--r--WordPress/src/main/res/anim/activity_slide_in_from_right.xml11
-rw-r--r--WordPress/src/main/res/anim/activity_slide_out_to_left.xml11
-rw-r--r--WordPress/src/main/res/anim/activity_slide_out_to_right.xml11
-rw-r--r--WordPress/src/main/res/anim/blink.xml12
-rw-r--r--WordPress/src/main/res/anim/box_with_pages_slide_up_page1.xml8
-rw-r--r--WordPress/src/main/res/anim/box_with_pages_slide_up_page2.xml8
-rw-r--r--WordPress/src/main/res/anim/box_with_pages_slide_up_page3.xml8
-rw-r--r--WordPress/src/main/res/anim/cab_deselect.xml14
-rw-r--r--WordPress/src/main/res/anim/cab_select.xml15
-rw-r--r--WordPress/src/main/res/anim/cycle_5.xml17
-rw-r--r--WordPress/src/main/res/anim/do_nothing.xml5
-rw-r--r--WordPress/src/main/res/anim/fade_out.xml9
-rw-r--r--WordPress/src/main/res/anim/notifications_button_scale.xml15
-rw-r--r--WordPress/src/main/res/anim/pop.xml11
-rw-r--r--WordPress/src/main/res/anim/pressed_card.xml19
-rw-r--r--WordPress/src/main/res/anim/raise.xml19
-rw-r--r--WordPress/src/main/res/anim/reader_flyin.xml6
-rw-r--r--WordPress/src/main/res/anim/reader_flyout.xml6
-rw-r--r--WordPress/src/main/res/anim/reader_top_bar_in.xml11
-rw-r--r--WordPress/src/main/res/anim/reader_top_bar_out.xml11
-rw-r--r--WordPress/src/main/res/anim/shake.xml20
-rw-r--r--WordPress/src/main/res/anim/slide_up.xml6
23 files changed, 264 insertions, 0 deletions
diff --git a/WordPress/src/main/res/anim/activity_slide_in_from_left.xml b/WordPress/src/main/res/anim/activity_slide_in_from_left.xml
new file mode 100644
index 000000000..54265e051
--- /dev/null
+++ b/WordPress/src/main/res/anim/activity_slide_in_from_left.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator">
+
+ <translate
+ android:fromXDelta="-100%p"
+ android:toXDelta="0" />
+
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/activity_slide_in_from_right.xml b/WordPress/src/main/res/anim/activity_slide_in_from_right.xml
new file mode 100644
index 000000000..9300067a7
--- /dev/null
+++ b/WordPress/src/main/res/anim/activity_slide_in_from_right.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator">
+
+ <translate
+ android:fromXDelta="100%p"
+ android:toXDelta="0" />
+
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/activity_slide_out_to_left.xml b/WordPress/src/main/res/anim/activity_slide_out_to_left.xml
new file mode 100644
index 000000000..f562c7e27
--- /dev/null
+++ b/WordPress/src/main/res/anim/activity_slide_out_to_left.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator">
+
+ <translate
+ android:fromXDelta="0"
+ android:toXDelta="-100%p" />
+
+</set>
diff --git a/WordPress/src/main/res/anim/activity_slide_out_to_right.xml b/WordPress/src/main/res/anim/activity_slide_out_to_right.xml
new file mode 100644
index 000000000..cb6ddae0c
--- /dev/null
+++ b/WordPress/src/main/res/anim/activity_slide_out_to_right.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator">
+
+ <translate
+ android:fromXDelta="0"
+ android:toXDelta="100%p" />
+
+</set>
diff --git a/WordPress/src/main/res/anim/blink.xml b/WordPress/src/main/res/anim/blink.xml
new file mode 100644
index 000000000..2d1035dfe
--- /dev/null
+++ b/WordPress/src/main/res/anim/blink.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:fillAfter="true" >
+
+ <alpha
+ android:fromAlpha="0"
+ android:toAlpha="1"
+ android:repeatMode="reverse"
+ android:duration="600"
+ android:repeatCount="infinite"
+ android:startOffset="200" />
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/box_with_pages_slide_up_page1.xml b/WordPress/src/main/res/anim/box_with_pages_slide_up_page1.xml
new file mode 100644
index 000000000..a85fc5429
--- /dev/null
+++ b/WordPress/src/main/res/anim/box_with_pages_slide_up_page1.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:startOffset="200"
+ android:duration="600"
+ android:fromYDelta="100%p"
+ android:toYDelta="0"
+ android:interpolator="@android:anim/overshoot_interpolator" />
+
diff --git a/WordPress/src/main/res/anim/box_with_pages_slide_up_page2.xml b/WordPress/src/main/res/anim/box_with_pages_slide_up_page2.xml
new file mode 100644
index 000000000..782df4db5
--- /dev/null
+++ b/WordPress/src/main/res/anim/box_with_pages_slide_up_page2.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:startOffset="0"
+ android:duration="800"
+ android:fromYDelta="100%p"
+ android:toYDelta="0"
+ android:interpolator="@android:anim/overshoot_interpolator" />
+
diff --git a/WordPress/src/main/res/anim/box_with_pages_slide_up_page3.xml b/WordPress/src/main/res/anim/box_with_pages_slide_up_page3.xml
new file mode 100644
index 000000000..bb4f315d8
--- /dev/null
+++ b/WordPress/src/main/res/anim/box_with_pages_slide_up_page3.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:startOffset="300"
+ android:duration="600"
+ android:fromYDelta="100%p"
+ android:toYDelta="0"
+ android:interpolator="@android:anim/overshoot_interpolator" />
+
diff --git a/WordPress/src/main/res/anim/cab_deselect.xml b/WordPress/src/main/res/anim/cab_deselect.xml
new file mode 100644
index 000000000..6f586aa5f
--- /dev/null
+++ b/WordPress/src/main/res/anim/cab_deselect.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Counterpart to cab_select.xml
+-->
+<scale xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/accelerate_interpolator"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:fromXScale="1.0"
+ android:toXScale="0.0"
+ android:fromYScale="1.0"
+ android:toYScale="0.0" />
diff --git a/WordPress/src/main/res/anim/cab_select.xml b/WordPress/src/main/res/anim/cab_select.xml
new file mode 100644
index 000000000..a8d0a10ed
--- /dev/null
+++ b/WordPress/src/main/res/anim/cab_select.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ animation used on checkbox when selecting a list item in CAB mode
+ see ui/Comments/CommentAdapter for example
+-->
+<scale xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:fromXScale="0.0"
+ android:toXScale="1.0"
+ android:fromYScale="0.0"
+ android:toYScale="1.0" />
diff --git a/WordPress/src/main/res/anim/cycle_5.xml b/WordPress/src/main/res/anim/cycle_5.xml
new file mode 100644
index 000000000..4dfe175d7
--- /dev/null
+++ b/WordPress/src/main/res/anim/cycle_5.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+ <!--
+ Copyright (C) 2007 The Android Open Source Project Licensed under
+ the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a
+ copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+ -->
+
+<cycleInterpolator
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:cycles="5" />
diff --git a/WordPress/src/main/res/anim/do_nothing.xml b/WordPress/src/main/res/anim/do_nothing.xml
new file mode 100644
index 000000000..4c8f1d992
--- /dev/null
+++ b/WordPress/src/main/res/anim/do_nothing.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="300"
+ android:fromXDelta="0"
+ android:toXDelta="0" />
diff --git a/WordPress/src/main/res/anim/fade_out.xml b/WordPress/src/main/res/anim/fade_out.xml
new file mode 100644
index 000000000..18050e8eb
--- /dev/null
+++ b/WordPress/src/main/res/anim/fade_out.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:fillAfter="true" >
+
+ <alpha
+ android:fromAlpha="1"
+ android:toAlpha="0"
+ android:duration="600" />
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/notifications_button_scale.xml b/WordPress/src/main/res/anim/notifications_button_scale.xml
new file mode 100644
index 000000000..1e33859bf
--- /dev/null
+++ b/WordPress/src/main/res/anim/notifications_button_scale.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- quick scale animation to show for moderation buttons in CommentDetailFragment -->
+<scale xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:fillAfter="false"
+ android:fromXScale="1.0"
+ android:fromYScale="1.0"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toXScale="1.5"
+ android:toYScale="1.5"
+ android:repeatMode="reverse"
+ android:repeatCount="1" /> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/pop.xml b/WordPress/src/main/res/anim/pop.xml
new file mode 100644
index 000000000..3da388a95
--- /dev/null
+++ b/WordPress/src/main/res/anim/pop.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<scale xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_longAnimTime"
+ android:fillAfter="true"
+ android:fromXScale="0.0"
+ android:fromYScale="0.0"
+ android:interpolator="@android:anim/overshoot_interpolator"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toXScale="1.0"
+ android:toYScale="1.0" />
diff --git a/WordPress/src/main/res/anim/pressed_card.xml b/WordPress/src/main/res/anim/pressed_card.xml
new file mode 100644
index 000000000..ccab3487d
--- /dev/null
+++ b/WordPress/src/main/res/anim/pressed_card.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_enabled="true"
+ android:state_pressed="true">
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="@dimen/card_elevation_pressed"
+ android:valueType="floatType" />
+ </item>
+ <item>
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="0"
+ android:valueType="floatType" />
+ </item>
+</selector> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/raise.xml b/WordPress/src/main/res/anim/raise.xml
new file mode 100644
index 000000000..0b42ac7a1
--- /dev/null
+++ b/WordPress/src/main/res/anim/raise.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_enabled="true"
+ android:state_pressed="true">
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="4dp"
+ android:valueType="floatType"/>
+ </item>
+ <item>
+ <objectAnimator
+ android:duration="@android:integer/config_shortAnimTime"
+ android:propertyName="translationZ"
+ android:valueTo="0dp"
+ android:valueType="floatType"/>
+ </item>
+</selector>
diff --git a/WordPress/src/main/res/anim/reader_flyin.xml b/WordPress/src/main/res/anim/reader_flyin.xml
new file mode 100644
index 000000000..040a795df
--- /dev/null
+++ b/WordPress/src/main/res/anim/reader_flyin.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromYDelta="100%p"
+ android:toYDelta="0"/>
diff --git a/WordPress/src/main/res/anim/reader_flyout.xml b/WordPress/src/main/res/anim/reader_flyout.xml
new file mode 100644
index 000000000..f1928562c
--- /dev/null
+++ b/WordPress/src/main/res/anim/reader_flyout.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:interpolator="@android:anim/accelerate_interpolator"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:fromYDelta="0"
+ android:toYDelta="100%p"/>
diff --git a/WordPress/src/main/res/anim/reader_top_bar_in.xml b/WordPress/src/main/res/anim/reader_top_bar_in.xml
new file mode 100644
index 000000000..8d9a73b61
--- /dev/null
+++ b/WordPress/src/main/res/anim/reader_top_bar_in.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:interpolator="@android:anim/decelerate_interpolator">
+
+ <translate
+ android:fromYDelta="-100%p"
+ android:toYDelta="0"/>
+
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/reader_top_bar_out.xml b/WordPress/src/main/res/anim/reader_top_bar_out.xml
new file mode 100644
index 000000000..03e36a60a
--- /dev/null
+++ b/WordPress/src/main/res/anim/reader_top_bar_out.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<set xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="@android:integer/config_mediumAnimTime"
+ android:interpolator="@android:anim/accelerate_interpolator">
+
+ <translate
+ android:fromYDelta="0"
+ android:toYDelta="-100%p"/>
+
+</set> \ No newline at end of file
diff --git a/WordPress/src/main/res/anim/shake.xml b/WordPress/src/main/res/anim/shake.xml
new file mode 100644
index 000000000..628940fca
--- /dev/null
+++ b/WordPress/src/main/res/anim/shake.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+ <!--
+ Copyright (C) 2007 The Android Open Source Project Licensed under
+ the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a
+ copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+ -->
+
+<translate
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:fromXDelta="0"
+ android:toXDelta="10"
+ android:duration="1000"
+ android:interpolator="@anim/cycle_5" />
diff --git a/WordPress/src/main/res/anim/slide_up.xml b/WordPress/src/main/res/anim/slide_up.xml
new file mode 100644
index 000000000..7c6821e29
--- /dev/null
+++ b/WordPress/src/main/res/anim/slide_up.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<translate xmlns:android="http://schemas.android.com/apk/res/android"
+ android:duration="300"
+ android:fromYDelta="100%p"
+ android:toYDelta="0"
+ android:interpolator="@android:anim/accelerate_decelerate_interpolator" />