summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-09-28 22:17:40 +0800
committerAngus Kong <shkong@google.com>2011-10-03 18:44:13 +0800
commitff7106e9609981e79ba183b839223df392deefcf (patch)
treefd5bf6f4a9fa055de2768a5c7a39b29e180e8b68 /res/layout
parent2bbd7e182f25816008262f2e2bd9a1a08392c913 (diff)
downloadLegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.zip
LegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.tar.gz
LegacyCamera-ff7106e9609981e79ba183b839223df392deefcf.tar.bz2
Fix recording time label in portrait mode.
bug:5039042 Change-Id: I61dd597b0b71566a00eb1cca45ea0b3e3019fac6
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/preview_frame_video.xml30
1 files changed, 18 insertions, 12 deletions
diff --git a/res/layout/preview_frame_video.xml b/res/layout/preview_frame_video.xml
index 92849df..f80ffe3 100644
--- a/res/layout/preview_frame_video.xml
+++ b/res/layout/preview_frame_video.xml
@@ -27,20 +27,26 @@
<SurfaceView android:id="@+id/camera_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
- <!-- 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="300dp"
+ <com.android.camera.ui.RotateLayout android:id="@+id/recording_time_rect"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="left|bottom"
- android:layout_marginBottom="13dp"
+ android:layout_marginTop="13dp"
android:layout_marginLeft="17dp"
- android:paddingRight="2dp"
- android:visibility="gone"/>
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true">
+
+ <!-- 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"/>
+ </com.android.camera.ui.RotateLayout>
<ImageView android:id="@+id/review_image"
android:layout_width="match_parent"
android:layout_height="match_parent"