summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorWei Huang <weih@google.com>2011-10-05 11:30:48 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-05 11:30:48 -0700
commit7f1b0d66edd09a4cb218ecc1255a8d48f5c18a60 (patch)
tree3220ab2c5f3011464b7768c977c27e7340f3029e /res/layout
parent7cb7736b6b6087cc965bafca72eac912fe7bf165 (diff)
parente4d0a72cbc4633497c393019ff2c57e63b1039b9 (diff)
downloadLegacyCamera-7f1b0d66edd09a4cb218ecc1255a8d48f5c18a60.zip
LegacyCamera-7f1b0d66edd09a4cb218ecc1255a8d48f5c18a60.tar.gz
LegacyCamera-7f1b0d66edd09a4cb218ecc1255a8d48f5c18a60.tar.bz2
Merge "Add time lapse label for Phone UI."
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/indicator_bar.xml2
-rw-r--r--res/layout/preview_frame_video.xml21
-rw-r--r--res/layout/viewfinder_labels_video.xml31
3 files changed, 35 insertions, 19 deletions
diff --git a/res/layout/indicator_bar.xml b/res/layout/indicator_bar.xml
index cbbfcef..4fe6d45 100644
--- a/res/layout/indicator_bar.xml
+++ b/res/layout/indicator_bar.xml
@@ -23,7 +23,7 @@
<RelativeLayout
android:id="@+id/control_bars"
android:layout_toRightOf="@+id/zoom_index_bar"
- android:layout_width="48dp"
+ android:layout_width="@dimen/indicator_bar_width"
android:layout_height="match_parent">
<com.android.camera.ui.IndicatorControlBar
android:id="@+id/indicator_bar"
diff --git a/res/layout/preview_frame_video.xml b/res/layout/preview_frame_video.xml
index 7bc4a49..c7db06b 100644
--- a/res/layout/preview_frame_video.xml
+++ b/res/layout/preview_frame_video.xml
@@ -26,26 +26,11 @@
android:background="@drawable/border_preview">
<SurfaceView android:id="@+id/camera_preview"
android:layout_width="match_parent"
- android:layout_height="match_parent"/>
+ android:layout_height="match_parent" />
<com.android.camera.ui.RotateLayout android:id="@+id/recording_time_rect"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="13dp"
- android:layout_marginLeft="17dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentLeft="true">
+ style="@style/ViewfinderLableLayout">
- <!-- Note: In this TextView the paddingRight="2"
- attribute is required because otherwise the
- text's drop shadow will be clipped. -->
- <TextView android:id="@+id/recording_time"
- style="@style/RecordingTime"
- android:drawablePadding="8dp"
- android:drawableLeft="@drawable/ic_recording_indicator"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingRight="2dp"
- android:visibility="gone"/>
+ <include layout="@layout/viewfinder_labels_video" android:id="@+id/labels" />
</com.android.camera.ui.RotateLayout>
<ImageView android:id="@+id/review_image"
android:layout_width="match_parent"
diff --git a/res/layout/viewfinder_labels_video.xml b/res/layout/viewfinder_labels_video.xml
new file mode 100644
index 0000000..9e9c892
--- /dev/null
+++ b/res/layout/viewfinder_labels_video.xml
@@ -0,0 +1,31 @@
+<?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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <TextView android:id="@+id/recording_time"
+ style="@style/OnViewfinderLabel"
+ android:gravity="center"
+ android:drawableLeft="@drawable/ic_recording_indicator"
+ android:drawablePadding="5dp"
+ android:visibility="gone" />
+ <TextView android:id="@+id/time_lapse_label"
+ android:text="@string/time_lapse_title"
+ style="@style/OnViewfinderLabel"
+ android:visibility="gone" />
+</LinearLayout>