summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorChih-yu Huang <akahuang@google.com>2011-10-07 16:15:53 +0800
committerChih-yu Huang <akahuang@google.com>2011-10-07 18:25:24 +0800
commit94ca8baae7e6e3885d895c095890eabf30d922e2 (patch)
treeeb8cc5fac5473512bda66e92db7c55ca463f4fd4 /res/layout
parentfc52f4a9bf815633739125883807bfe965cf6009 (diff)
downloadLegacyCamera-94ca8baae7e6e3885d895c095890eabf30d922e2.zip
LegacyCamera-94ca8baae7e6e3885d895c095890eabf30d922e2.tar.gz
LegacyCamera-94ca8baae7e6e3885d895c095890eabf30d922e2.tar.bz2
Let review icons rotatable.
bug:5244256 Change-Id: Ieed6119f22598a34eeb1672d07f55a876dced791
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/preview_frame_video.xml10
-rw-r--r--res/layout/review_control.xml10
2 files changed, 12 insertions, 8 deletions
diff --git a/res/layout/preview_frame_video.xml b/res/layout/preview_frame_video.xml
index 04c25e8..c2823ee 100644
--- a/res/layout/preview_frame_video.xml
+++ b/res/layout/preview_frame_video.xml
@@ -37,9 +37,13 @@
android:layout_height="match_parent"
android:visibility="gone"
android:background="@android:color/black"/>
- <ImageButton android:id="@+id/btn_play"
- style="@style/ReviewPlayIcon"
- android:onClick="onPlayButtonClicked"/>
+ <com.android.camera.ui.RotateImageView
+ android:id="@+id/btn_play"
+ style="@style/ReviewControlIcon"
+ android:layout_centerInParent="true"
+ android:src="@drawable/ic_gallery_play"
+ android:visibility="gone"
+ android:onClick="onReviewPlayClicked"/>
<TextView android:id="@+id/bg_replace_message"
android:layout_width="300dp"
android:layout_height="wrap_content"
diff --git a/res/layout/review_control.xml b/res/layout/review_control.xml
index 6e725e5..6a25d2c 100644
--- a/res/layout/review_control.xml
+++ b/res/layout/review_control.xml
@@ -18,12 +18,12 @@
android:id="@+id/review_control"
android:layout_width="match_parent"
android:layout_height="match_parent">
- <ImageView android:id="@+id/btn_done"
+ <com.android.camera.ui.RotateImageView android:id="@+id/btn_done"
style="@style/ReviewControlIcon"
android:visibility="gone"
android:layout_alignParentTop="true"
android:layout_marginTop="20dp"
- android:onClick="onDoneButtonClicked"
+ android:onClick="onReviewDoneClicked"
android:src="@drawable/ic_menu_done_holo_light" />
<ImageView android:id="@+id/btn_retake"
android:layout_width="wrap_content"
@@ -32,13 +32,13 @@
android:clickable="true"
android:focusable="true"
android:visibility="gone"
- android:onClick="onRetakeButtonClicked"
+ android:onClick="onReviewRetakeClicked"
android:background="@drawable/btn_shutter_retake" />
- <ImageView android:id="@+id/btn_cancel"
+ <com.android.camera.ui.RotateImageView android:id="@+id/btn_cancel"
style="@style/ReviewControlIcon"
android:visibility="gone"
android:layout_alignParentBottom="true"
android:layout_marginBottom="20dp"
- android:onClick="onCancelButtonClicked"
+ android:onClick="onReviewCancelClicked"
android:src="@drawable/ic_menu_cancel_holo_light" />
</RelativeLayout>