summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-09 01:17:49 -0800
committerSteve Kondik <steve@cyngn.com>2016-11-13 23:33:36 -0800
commitf886863e6d8024ef6d2c2712aa518a761fff6b9d (patch)
tree48e17f4ab5372589629da48779caa04cb66fca8a /res/layout
parent4538ee80f8a9eb338281db00fb349e111eeb5aaf (diff)
downloadandroid_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.tar.gz
android_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.tar.bz2
android_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.zip
snap: Better capture animation
* Modified version from Camera2 * Also adjust the callbacks for better response Change-Id: I85ac23cdf35d9e2625799dd64b9f86aef103be7b
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/capture_module.xml9
-rw-r--r--res/layout/photo_module.xml12
-rw-r--r--res/layout/video_module.xml12
3 files changed, 18 insertions, 15 deletions
diff --git a/res/layout/capture_module.xml b/res/layout/capture_module.xml
index b03c43317..dba8de9a8 100644
--- a/res/layout/capture_module.xml
+++ b/res/layout/capture_module.xml
@@ -64,7 +64,14 @@
android:id="@+id/focus_ring"
android:layout_width="match_parent"
android:layout_height="match_parent" />
- </FrameLayout>
+
+ <com.android.camera.ui.CaptureAnimationOverlay
+ android:id="@+id/capture_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
+
+ </FrameLayout>
<com.android.camera.ui.RenderOverlay
android:id="@+id/render_overlay"
diff --git a/res/layout/photo_module.xml b/res/layout/photo_module.xml
index f184e0c56..794a968f4 100644
--- a/res/layout/photo_module.xml
+++ b/res/layout/photo_module.xml
@@ -45,6 +45,11 @@
android:id="@+id/focus_ring"
android:layout_width="match_parent"
android:layout_height="match_parent" />
+ <com.android.camera.ui.CaptureAnimationOverlay
+ android:id="@+id/capture_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
<com.android.camera.ui.RotateImageView
android:id="@+id/review_image"
android:layout_width="match_parent"
@@ -53,13 +58,6 @@
android:clickable="true"
android:background="@android:color/black"
android:scaleType="fitCenter"/>
- <View
- android:id="@+id/flash_overlay"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@android:color/white"
- android:visibility="gone"
- android:alpha="0" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml
index c6a9d7e80..f12f06ce7 100644
--- a/res/layout/video_module.xml
+++ b/res/layout/video_module.xml
@@ -43,13 +43,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black" />
- <View
- android:id="@+id/flash_overlay"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@android:color/white"
- android:visibility="gone"
- android:alpha="0" />
<FrameLayout android:id="@+id/preview_border"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -81,6 +74,11 @@
android:id="@+id/focus_ring"
android:layout_width="match_parent"
android:layout_height="match_parent" />
+ <com.android.camera.ui.CaptureAnimationOverlay
+ android:id="@+id/capture_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
<ImageView android:id="@+id/review_image"
android:layout_height="match_parent"
android:layout_width="match_parent"