summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-18 17:59:15 -0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:42 +0200
commit149fda811f314f38a192d01f1ad68412ed50597d (patch)
tree8ad4f74ddf6c65c3a7ab8d2bbc348b3f0dc55112
parent0e20b4e64a974846888b61c012c5fe2b42c24b78 (diff)
downloadandroid_packages_apps_Snap-149fda811f314f38a192d01f1ad68412ed50597d.zip
android_packages_apps_Snap-149fda811f314f38a192d01f1ad68412ed50597d.tar.gz
android_packages_apps_Snap-149fda811f314f38a192d01f1ad68412ed50597d.tar.bz2
snap: Fix preview overlays
* Fix Z-order and touch focus Change-Id: I05891f6b6c1c5e9a0a9b1142c0613c08fb451bd1
-rw-r--r--res/layout/capture_module.xml32
-rw-r--r--res/layout/photo_module.xml34
-rw-r--r--res/layout/video_module.xml34
3 files changed, 45 insertions, 55 deletions
diff --git a/res/layout/capture_module.xml b/res/layout/capture_module.xml
index d52a8fa..4ba1818 100644
--- a/res/layout/capture_module.xml
+++ b/res/layout/capture_module.xml
@@ -50,28 +50,22 @@
android:layout_height="match_parent"
android:background="@android:color/black" />
- <FrameLayout
+ <com.android.camera.ui.focus.FocusRingView
+ android:id="@+id/focus_ring"
android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <com.android.camera.ui.Camera2FaceView
- android:id="@+id/face_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"/>
-
- <com.android.camera.ui.focus.FocusRingView
- android:id="@+id/focus_ring"
- android:layout_width="match_parent"
- android:layout_height="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.CaptureAnimationOverlay
+ android:id="@+id/capture_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
- </FrameLayout>
+ <com.android.camera.ui.Camera2FaceView
+ android:id="@+id/face_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone"/>
<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 d972989..372596c 100644
--- a/res/layout/photo_module.xml
+++ b/res/layout/photo_module.xml
@@ -44,25 +44,23 @@
android:layout_height="match_parent"
android:background="@android:color/black" />
- <FrameLayout
+ <com.android.camera.ui.focus.FocusRingView
+ android:id="@+id/focus_ring"
android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ViewStub android:id="@+id/face_view_stub"
- android:inflatedId="@+id/face_view"
- android:layout="@layout/face_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"/>
- <com.android.camera.ui.focus.FocusRingView
- 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" />
- </FrameLayout>
+ 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" />
+
+ <ViewStub android:id="@+id/face_view_stub"
+ android:inflatedId="@+id/face_view"
+ android:layout="@layout/face_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone"/>
<com.android.camera.ui.RenderOverlay
android:id="@+id/render_overlay"
diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml
index a6024d5..3091e21 100644
--- a/res/layout/video_module.xml
+++ b/res/layout/video_module.xml
@@ -36,25 +36,23 @@
android:layout_height="match_parent"
android:background="@android:color/black" />
- <FrameLayout
+ <com.android.camera.ui.focus.FocusRingView
+ android:id="@+id/focus_ring"
android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ViewStub android:id="@+id/face_view_stub"
- android:inflatedId="@+id/face_view"
- android:layout="@layout/face_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"/>
- <com.android.camera.ui.focus.FocusRingView
- 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" />
- </FrameLayout>
+ 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" />
+
+ <ViewStub android:id="@+id/face_view_stub"
+ android:inflatedId="@+id/face_view"
+ android:layout="@layout/face_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone"/>
<com.android.camera.ui.RenderOverlay
android:id="@+id/render_overlay"