diff options
author | Jay Wang <jaywang@codeaurora.org> | 2016-05-03 11:59:46 -0700 |
---|---|---|
committer | Jay Wang <jaywang@codeaurora.org> | 2016-05-04 14:41:00 -0700 |
commit | 377456cde5b0c385ea6635a989df68b6f84cc6cb (patch) | |
tree | c6395c115435e026c758a73b88f7407d585644f1 /res/layout/review_module_control.xml | |
parent | 6b741069fbe98a3b75ae8744f4a7790525199deb (diff) | |
download | android_packages_apps_Snap-377456cde5b0c385ea6635a989df68b6f84cc6cb.tar.gz android_packages_apps_Snap-377456cde5b0c385ea6635a989df68b6f84cc6cb.tar.bz2 android_packages_apps_Snap-377456cde5b0c385ea6635a989df68b6f84cc6cb.zip |
SnapdragonCamera: Support rotation for image review layout
Currently, image review layout is fixed to portrait mode.
Changing the resources to use RotateImageView and update
the scaling function in RotateImageView to support both
up and down scaling of the image
CRs-Fixed: 1004669
Change-Id: I6940227c634b7654bce5de5efe032aaa8da80e72
Diffstat (limited to 'res/layout/review_module_control.xml')
-rw-r--r-- | res/layout/review_module_control.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/res/layout/review_module_control.xml b/res/layout/review_module_control.xml new file mode 100644 index 000000000..8280b3101 --- /dev/null +++ b/res/layout/review_module_control.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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.ui.RotatableLayout + xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/CameraControls" + android:layout_gravity="bottom|center_horizontal" + android:layout_marginBottom="2dip"> + <com.android.camera.ui.RotateImageView android:id="@+id/btn_done" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_ok" + android:visibility="gone" + android:scaleType="center" + android:layout_gravity="right|bottom" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_menu_done_holo_light" /> + + <com.android.camera.ui.RotateImageView android:id="@+id/btn_retake" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_retake" + android:layout_gravity="bottom|center_horizontal" + android:scaleType="center" + android:focusable="true" + android:visibility="gone" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_btn_shutter_retake" /> + + <com.android.camera.ui.RotateImageView android:id="@+id/btn_cancel" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_cancel" + android:visibility="gone" + android:scaleType="center" + android:layout_gravity="left|bottom" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_menu_cancel_holo_light" /> +</com.android.camera.ui.RotatableLayout> |