summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-11-10 01:38:15 +0800
committerWu-cheng Li <wuchengli@google.com>2010-11-10 18:07:14 +0800
commit64fbf551646615592f8bd8320fef57e9aae01492 (patch)
treea37d44eecae8319381ee40e10d1117c2c1cc02d1 /res
parentd56274ad69e088a1682d33c6d414261ed080b378 (diff)
downloadLegacyCamera-64fbf551646615592f8bd8320fef57e9aae01492.zip
LegacyCamera-64fbf551646615592f8bd8320fef57e9aae01492.tar.gz
LegacyCamera-64fbf551646615592f8bd8320fef57e9aae01492.tar.bz2
Rotate the recording time according to orientation. do not merge
bug:3163671 Change-Id: I87d8d8615df136d8347fb345e68eb1f8f8b6fb8b
Diffstat (limited to 'res')
-rw-r--r--res/layout/video_camera.xml43
1 files changed, 24 insertions, 19 deletions
diff --git a/res/layout/video_camera.xml b/res/layout/video_camera.xml
index ea4cf51..a684a5b 100644
--- a/res/layout/video_camera.xml
+++ b/res/layout/video_camera.xml
@@ -37,27 +37,32 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
- <!-- 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"
- android:layout_width="180dp"
+ <com.android.camera.ui.RotateRecordingTime 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_marginLeft="17dp"
- android:paddingRight="2dp"
- android:drawablePadding="8dp"
- android:drawableLeft="@drawable/ic_recording_indicator"
- android:shadowColor="#c0000000"
- android:shadowDx="1"
- android:shadowDy="1"
- android:shadowRadius="1"
- android:gravity="left|center_vertical"
- android:textColor="@color/recording_time_elapsed_text"
- android:textSize="23dp"
- android:textStyle="bold"
- android:visibility="gone"/>
+ android:layout_marginBottom="14dp"
+ android:layout_marginLeft="14dp">
+ <!-- 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"
+ android:layout_width="130dp"
+ android:layout_height="130dp"
+ android:layout_gravity="center"
+ android:paddingRight="2dp"
+ android:drawablePadding="8dp"
+ android:drawableLeft="@drawable/ic_recording_indicator"
+ android:shadowColor="#c0000000"
+ android:shadowDx="1"
+ android:shadowDy="1"
+ android:shadowRadius="1"
+ android:gravity="left|center_vertical"
+ android:textColor="@color/recording_time_elapsed_text"
+ android:textSize="23dp"
+ android:textStyle="bold"
+ android:visibility="gone"/>
+ </com.android.camera.ui.RotateRecordingTime>
</FrameLayout>
</com.android.camera.PreviewFrameLayout>
</LinearLayout>