summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-08-15 12:43:23 +0800
committerChung-yih Wang <cywang@google.com>2011-08-17 15:25:00 +0800
commitadab2bddc93bf4af535cb58e7167bf8690d97d8c (patch)
tree1d6a716948dd84f35282529172d2c7e5fecbf781 /res/layout
parent383a2b45820ff710627dbd536f1bd683e393e335 (diff)
downloadpackages_apps_LegacyCamera-adab2bddc93bf4af535cb58e7167bf8690d97d8c.zip
packages_apps_LegacyCamera-adab2bddc93bf4af535cb58e7167bf8690d97d8c.tar.gz
packages_apps_LegacyCamera-adab2bddc93bf4af535cb58e7167bf8690d97d8c.tar.bz2
Add Sprung Lever Zoom Control for Phone UI.
bug:5083780 Change-Id: I5b29f6bc509fc93ed74175e2754ce9f3c4afe27f
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/camera_control.xml14
-rw-r--r--res/layout/indicator_bar.xml54
-rw-r--r--res/layout/preview_frame.xml7
-rw-r--r--res/layout/preview_frame_video.xml7
4 files changed, 63 insertions, 19 deletions
diff --git a/res/layout/camera_control.xml b/res/layout/camera_control.xml
index 6347f3c..ea9c3fe 100644
--- a/res/layout/camera_control.xml
+++ b/res/layout/camera_control.xml
@@ -24,13 +24,13 @@
<include layout="@layout/review_thumbnail"/>
<com.android.camera.ui.CameraPicker android:id="@+id/camera_picker"
- android:clickable="true"
- android:layout_centerVertical="true"
- android:layout_centerHorizontal="true"
- android:layout_below="@+id/share_button"
- android:layout_above="@+id/shutter_button"
- android:layout_width="36dp"
- android:layout_height="36dp" />
+ android:clickable="true"
+ android:layout_centerVertical="true"
+ android:layout_centerHorizontal="true"
+ android:layout_below="@+id/share_button"
+ android:layout_above="@+id/shutter_button"
+ android:layout_width="36dp"
+ android:layout_height="36dp" />
<!-- need fixed size of the view since the source icon(HDPI) will be too large for phones -->
<com.android.camera.ShutterButton android:id="@+id/shutter_button"
diff --git a/res/layout/indicator_bar.xml b/res/layout/indicator_bar.xml
new file mode 100644
index 0000000..b3d8c09
--- /dev/null
+++ b/res/layout/indicator_bar.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+<com.android.camera.ui.IndicatorControlContainer xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/indicator_control"
+ android:layout_width="48dp"
+ android:layout_height="match_parent"
+ android:layout_marginTop="6dp"
+ android:layout_marginRight="6dp"
+ android:layout_marginBottom="6dp"
+ android:clickable="true"
+ android:layout_alignParentRight="true">
+ <com.android.camera.ui.IndicatorBar
+ android:id="@+id/indicator_bar"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <ImageView
+ android:id="@+id/zoom_control_icon"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:src="@drawable/btn_zoom_control"
+ android:visibility="gone" />
+ <com.android.camera.ui.RotateImageView
+ android:id="@+id/second_level_indicator_bar_icon"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:src="@drawable/ic_settings_holo_light" />
+ </com.android.camera.ui.IndicatorBar>
+
+ <com.android.camera.ui.ZoomControlBar
+ android:id="@+id/zoom_control"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
+ <com.android.camera.ui.SecondLevelIndicatorBar
+ android:id="@+id/second_level_indicator_bar"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone" />
+</com.android.camera.ui.IndicatorControlContainer>
diff --git a/res/layout/preview_frame.xml b/res/layout/preview_frame.xml
index 63887ff..1bf621a 100644
--- a/res/layout/preview_frame.xml
+++ b/res/layout/preview_frame.xml
@@ -53,12 +53,7 @@
android:layout_alignParentBottom="true"
android:layout_margin="5dp"
android:visibility="gone"/>
- <com.android.camera.ui.IndicatorBar
- android:id="@+id/indicator_control"
- android:layout_width="48dp"
- android:layout_height="match_parent"
- android:layout_centerVertical="true"
- android:layout_alignParentRight="true"/>
<include layout="@layout/tap_to_focus_toast"/>
+ <include layout="@layout/indicator_bar" />
</RelativeLayout>
</com.android.camera.PreviewFrameLayout>
diff --git a/res/layout/preview_frame_video.xml b/res/layout/preview_frame_video.xml
index 32154cd..abfd026 100644
--- a/res/layout/preview_frame_video.xml
+++ b/res/layout/preview_frame_video.xml
@@ -49,11 +49,6 @@
android:layout_height="match_parent"
android:visibility="gone"
android:background="@android:color/black" />
- <com.android.camera.ui.IndicatorBar
- android:id="@+id/indicator_control"
- android:layout_width="48dp"
- android:layout_height="match_parent"
- android:layout_centerVertical="true"
- android:layout_alignParentRight="true"/>
+ <include layout="@layout/indicator_bar" />
</RelativeLayout>
</com.android.camera.PreviewFrameLayout>