summaryrefslogtreecommitdiffstats
path: root/res/layout-xlarge
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-04 20:35:34 +0800
committerWu-cheng Li <wuchengli@google.com>2010-10-06 17:21:28 +0800
commitc5019f4d58412da6227b3f2e6461bba5b7c671a3 (patch)
tree7dd6069c58588803fbacb41dceb4c8ec84f84191 /res/layout-xlarge
parente6da834b082439299bb60529e690845e14dfdbc4 (diff)
downloadLegacyCamera-c5019f4d58412da6227b3f2e6461bba5b7c671a3.zip
LegacyCamera-c5019f4d58412da6227b3f2e6461bba5b7c671a3.tar.gz
LegacyCamera-c5019f4d58412da6227b3f2e6461bba5b7c671a3.tar.bz2
Add zoom picker for xlarge layout.
The zoom of on-screen controls is not created if zoom picker exists. Change-Id: I229108aa8bc3eac7175acec46e14240627c7da7c
Diffstat (limited to 'res/layout-xlarge')
-rw-r--r--res/layout-xlarge/camera_control.xml11
-rw-r--r--res/layout-xlarge/zoom_picker.xml43
2 files changed, 54 insertions, 0 deletions
diff --git a/res/layout-xlarge/camera_control.xml b/res/layout-xlarge/camera_control.xml
index b30ac3c..91e11ce 100644
--- a/res/layout-xlarge/camera_control.xml
+++ b/res/layout-xlarge/camera_control.xml
@@ -36,6 +36,17 @@
android:gravity="center">
</ListView>
+ <ViewStub android:id="@+id/zoom_stub"
+ android:inflatedId="@+id/zoom_picker"
+ android:layout="@layout/zoom_picker"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:layout_toRightOf="@id/image_list"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_centerInParent="true"/>
+
<com.android.camera.ShutterButton android:id="@+id/shutter_button"
android:layout_centerInParent="true"
android:layout_alignParentRight="true"
diff --git a/res/layout-xlarge/zoom_picker.xml b/res/layout-xlarge/zoom_picker.xml
new file mode 100644
index 0000000..50766d4
--- /dev/null
+++ b/res/layout-xlarge/zoom_picker.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 2010, 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.ZoomPicker xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView android:id="@+id/zoom_ratio"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:singleLine="true"
+ android:textColor="@android:color/white"
+ android:textSize="24dp" />
+
+ <Button android:id="@+id/increment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:background="@drawable/btn_zoom_picker_up" />
+
+ <Button android:id="@+id/decrement"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/btn_zoom_picker_down" />
+</com.android.camera.ZoomPicker>