summaryrefslogtreecommitdiffstats
path: root/res/layout-port
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-05-03 11:59:46 -0700
committerJay Wang <jaywang@codeaurora.org>2016-05-04 14:41:00 -0700
commit377456cde5b0c385ea6635a989df68b6f84cc6cb (patch)
treec6395c115435e026c758a73b88f7407d585644f1 /res/layout-port
parent6b741069fbe98a3b75ae8744f4a7790525199deb (diff)
downloadandroid_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-port')
-rw-r--r--res/layout-port/review_module_control.xml48
1 files changed, 0 insertions, 48 deletions
diff --git a/res/layout-port/review_module_control.xml b/res/layout-port/review_module_control.xml
deleted file mode 100644
index 3c4280ed2..000000000
--- a/res/layout-port/review_module_control.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?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">
- <ImageView 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" />
-
- <ImageView 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" />
-
- <ImageView 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>