summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-10-03 13:07:05 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-13 17:38:56 -0700
commitc296036cdea7cbda3862d592a10c8ba9288a1c31 (patch)
treef335274a1e5338d5336854c0c9efa263aa80502f /res/drawable
parentdfb04812766ce449c76fb39a188641db2dcce4f9 (diff)
downloadandroid_packages_apps_Snap-c296036cdea7cbda3862d592a10c8ba9288a1c31.tar.gz
android_packages_apps_Snap-c296036cdea7cbda3862d592a10c8ba9288a1c31.tar.bz2
android_packages_apps_Snap-c296036cdea7cbda3862d592a10c8ba9288a1c31.zip
SnapdragonCamera: Add shutter animation
Add shutter animation for both single capture and continuous shot. Change-Id: I9031b60138426d51f64a93078107b4a4f1a4f1c4 CRs-Fixed: 1066519
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/one_ui_shutter_1.pngbin0 -> 2957 bytes
-rw-r--r--res/drawable/one_ui_shutter_2.pngbin0 -> 3062 bytes
-rw-r--r--res/drawable/one_ui_shutter_3.pngbin0 -> 3184 bytes
-rw-r--r--res/drawable/one_ui_shutter_4.pngbin0 -> 3131 bytes
-rw-r--r--res/drawable/one_ui_shutter_5.pngbin0 -> 2947 bytes
-rw-r--r--res/drawable/one_ui_shutter_6.pngbin0 -> 2699 bytes
-rw-r--r--res/drawable/one_ui_shutter_anim.xml72
7 files changed, 72 insertions, 0 deletions
diff --git a/res/drawable/one_ui_shutter_1.png b/res/drawable/one_ui_shutter_1.png
new file mode 100644
index 000000000..46771e0cc
--- /dev/null
+++ b/res/drawable/one_ui_shutter_1.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_2.png b/res/drawable/one_ui_shutter_2.png
new file mode 100644
index 000000000..07e1f72de
--- /dev/null
+++ b/res/drawable/one_ui_shutter_2.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_3.png b/res/drawable/one_ui_shutter_3.png
new file mode 100644
index 000000000..503135797
--- /dev/null
+++ b/res/drawable/one_ui_shutter_3.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_4.png b/res/drawable/one_ui_shutter_4.png
new file mode 100644
index 000000000..9d3f565af
--- /dev/null
+++ b/res/drawable/one_ui_shutter_4.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_5.png b/res/drawable/one_ui_shutter_5.png
new file mode 100644
index 000000000..df6ccd79f
--- /dev/null
+++ b/res/drawable/one_ui_shutter_5.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_6.png b/res/drawable/one_ui_shutter_6.png
new file mode 100644
index 000000000..5165ef2c5
--- /dev/null
+++ b/res/drawable/one_ui_shutter_6.png
Binary files differ
diff --git a/res/drawable/one_ui_shutter_anim.xml b/res/drawable/one_ui_shutter_anim.xml
new file mode 100644
index 000000000..980b9adad
--- /dev/null
+++ b/res/drawable/one_ui_shutter_anim.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2016, The Linux Foundation. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of The Linux Foundation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/shutter_button_pressed"
+ android:oneshot="true" >
+
+ <item
+ android:drawable="@drawable/photo_capture"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_6"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_5"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_4"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_3"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_2"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_1"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_2"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_3"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_4"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_5"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/one_ui_shutter_6"
+ android:duration="16"/>
+ <item
+ android:drawable="@drawable/photo_capture"
+ android:duration="16"/>
+</animation-list>