summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2016-11-24 16:31:52 +0800
committerjunjiez <junjiez@codeaurora.org>2016-12-05 14:10:26 +0800
commit10f9ed035975937f670679a9d238d9db9e9952f1 (patch)
treee7480ce7d66776e85c03e6c78d212b51329ac1ac /res
parent7a280652591b1285af961111f16c6c35ff585401 (diff)
downloadandroid_packages_apps_Snap-10f9ed035975937f670679a9d238d9db9e9952f1.tar.gz
android_packages_apps_Snap-10f9ed035975937f670679a9d238d9db9e9952f1.tar.bz2
android_packages_apps_Snap-10f9ed035975937f670679a9d238d9db9e9952f1.zip
SnapdragonCamera:Modify Camera2 VideoRecording UI
Modify Camera2 VideoRecording UI and make it look like the same as the design document shows. Change-Id: I41ea3db7312847fe56ad9d8e73dfa92b030e79e2 CRs-Fixed: 1093507
Diffstat (limited to 'res')
-rwxr-xr-x[-rw-r--r--]res/layout/capture_module.xml28
-rwxr-xr-xres/layout/one_ui_layout.xml18
-rwxr-xr-x[-rw-r--r--]res/values/dimens.xml3
3 files changed, 28 insertions, 21 deletions
diff --git a/res/layout/capture_module.xml b/res/layout/capture_module.xml
index fc05fd0ca..0063a2e6a 100644..100755
--- a/res/layout/capture_module.xml
+++ b/res/layout/capture_module.xml
@@ -67,30 +67,24 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
- <com.android.camera.ui.RotateLayout
- android:id="@+id/recording_time_rect"
+
+ <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
-
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
+ <com.android.camera.ui.RotateLayout
+ android:id="@+id/recording_time_rect"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="horizontal">
-
- <com.android.camera.PauseButton
- android:id="@+id/video_pause"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="70dp"
- android:padding="23dp"
- android:src="@drawable/btn_pause_recording"/>
-
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"
+ android:visibility="gone"
+ android:layout_marginLeft="24dp"
+ android:layout_marginTop="80dp">
<include
android:id="@+id/labels"
layout="@layout/viewfinder_labels_video"/>
- </LinearLayout>
- </com.android.camera.ui.RotateLayout>
+ </com.android.camera.ui.RotateLayout>
+ </FrameLayout>
<include
style="@style/CameraControls"
diff --git a/res/layout/one_ui_layout.xml b/res/layout/one_ui_layout.xml
index d87040cde..53174698c 100755
--- a/res/layout/one_ui_layout.xml
+++ b/res/layout/one_ui_layout.xml
@@ -40,8 +40,8 @@
<com.android.camera.ShutterButton
android:id="@+id/shutter_button"
- android:layout_width="70dp"
- android:layout_height="70dp"
+ android:layout_width="@dimen/one_ui_bottom_large"
+ android:layout_height="@dimen/one_ui_bottom_large"
android:clickable="true"
android:contentDescription="@string/accessibility_shutter_button"
android:focusable="true"
@@ -50,14 +50,24 @@
<com.android.camera.ui.RotateImageView
android:id="@+id/video_button"
- android:layout_width="55dp"
- android:layout_height="55dp"
+ android:layout_width="@dimen/one_ui_bottom_small"
+ android:layout_height="@dimen/one_ui_bottom_small"
android:clickable="true"
android:contentDescription="@string/accessibility_shutter_button"
android:focusable="true"
android:scaleType="fitCenter"
android:src="@drawable/video_capture" />
+ <com.android.camera.PauseButton
+ android:id="@+id/video_pause"
+ android:layout_width="@dimen/one_ui_bottom_small"
+ android:layout_height="@dimen/one_ui_bottom_small"
+ android:focusable="true"
+ android:clickable="true"
+ android:scaleType="fitCenter"
+ android:visibility="gone"
+ android:src="@drawable/btn_pause_recording"/>
+
<com.android.camera.ui.RotateImageView
android:id="@+id/preview_thumb"
android:layout_width="@dimen/capture_size"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 2a58a33e2..d89d0a990 100644..100755
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -180,4 +180,7 @@
<dimen name="refocus_circle_diameter_3">95dp</dimen>
<dimen name="refocus_cross_length">19dp</dimen>
<dimen name="refocus_stroke_width">2dp</dimen>
+
+ <dimen name="one_ui_bottom_large">75dp</dimen>
+ <dimen name="one_ui_bottom_small">55dp</dimen>
</resources>