summaryrefslogtreecommitdiffstats
path: root/res/layout-sw600dp/pano_review.xml
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-10-18 12:47:44 +0800
committerChung-yih Wang <cywang@google.com>2011-11-01 15:31:16 +0800
commitd33109730e0ab81230f84e2bd35599e8e24fc4ba (patch)
treedf80db1d6647bf952f495a81d8ab67ee7498880d /res/layout-sw600dp/pano_review.xml
parentabf79a3e25e6c631275e9f81424c0aa25ec9191b (diff)
downloadLegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.zip
LegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.tar.gz
LegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.tar.bz2
Change the default orientation to portrait.
bug:5446617 Since the orientation is mainly portrait on phones, the default orientation of an application will decide if the window animation will be played before it starts. In order to reduce the launch time of Camera apps, this change is to skip the window animations by changing the default orientation to portrait. Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e
Diffstat (limited to 'res/layout-sw600dp/pano_review.xml')
-rw-r--r--res/layout-sw600dp/pano_review.xml80
1 files changed, 80 insertions, 0 deletions
diff --git a/res/layout-sw600dp/pano_review.xml b/res/layout-sw600dp/pano_review.xml
new file mode 100644
index 0000000..c16df1a
--- /dev/null
+++ b/res/layout-sw600dp/pano_review.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/pano_review_layout"
+ android:visibility="invisible"
+ android:orientation="vertical"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+
+ <LinearLayout android:id="@+id/pano_review_control"
+ style="@style/PanoViewHorizontalBar"
+ android:gravity="right"
+ android:orientation="horizontal">
+
+ <com.android.camera.ui.RotateLayout
+ android:id="@+id/pano_review_cancel_button_layout"
+ android:layout_gravity="center_vertical"
+ android:layout_marginRight="20dp"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <TextView android:id="@+id/pano_review_cancel_button"
+ android:text="@string/review_cancel"
+ android:gravity="right"
+ android:clickable="true"
+ android:onClick="onCancelButtonClicked"
+ android:textAppearance="?android:textAppearanceMedium"
+ android:minWidth="@dimen/pano_review_button_width"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content" />
+ </com.android.camera.ui.RotateLayout>
+ </LinearLayout>
+
+ <ImageView android:id="@+id/pano_reviewarea"
+ android:scaleType="fitCenter"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/pano_mosaic_surface_height" />
+
+ <RelativeLayout style="@style/PanoViewHorizontalBar">
+ <com.android.camera.ui.RotateLayout
+ android:id="@+id/pano_review_saving_indication_layout"
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:layout_marginLeft="20dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+ <TextView android:id="@+id/pano_review_saving_indication"
+ android:text="@string/pano_review_saving_indication_str"
+ android:textAppearance="?android:textAppearanceMedium"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content" />
+ </com.android.camera.ui.RotateLayout>
+
+ <com.android.camera.ui.RotateLayout
+ android:id="@+id/pano_saving_progress_bar_layout"
+ android:layout_centerInParent="true"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content">
+ <com.android.camera.panorama.PanoProgressBar
+ android:id="@+id/pano_saving_progress_bar"
+ android:src="@drawable/ic_pan_progression"
+ android:layout_centerInParent="true"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content" />
+ </com.android.camera.ui.RotateLayout>
+ </RelativeLayout>
+</LinearLayout>