summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
authorSpike Sprague <spikuru@google.com>2014-02-27 14:33:21 -0800
committerSpike Sprague <spikuru@google.com>2014-03-04 14:09:28 -0800
commit82fa6ae85f7c07fef480eb1cd0cf7f578b150676 (patch)
treef0ec7afe0ad03c731c83609f2536bf7a78f83e79 /res/layout-land
parent19259ea42f1ff0537847c9b5b3c01b4d0433a7d4 (diff)
downloadandroid_packages_apps_Camera2-82fa6ae85f7c07fef480eb1cd0cf7f578b150676.tar.gz
android_packages_apps_Camera2-82fa6ae85f7c07fef480eb1cd0cf7f578b150676.tar.bz2
android_packages_apps_Camera2-82fa6ae85f7c07fef480eb1cd0cf7f578b150676.zip
implement capture options animation
bug: 13100962 Change-Id: I1baf64693d0e01e99bfa19d0bd8699fd33d5812a
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/mode_options_bottombar.xml97
1 files changed, 97 insertions, 0 deletions
diff --git a/res/layout-land/mode_options_bottombar.xml b/res/layout-land/mode_options_bottombar.xml
new file mode 100644
index 000000000..e97bc561f
--- /dev/null
+++ b/res/layout-land/mode_options_bottombar.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+<!-- This layout is shared by phone and tablet in landscape orientation. -->
+<merge xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:camera="http://schemas.android.com/apk/res/com.android.camera2"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+
+ <com.android.camera.ui.RotatableLinearLayout
+ android:id="@+id/indicator_bottombar_wrapper"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <com.android.camera.widget.ModeOptionsOverlay
+ android:id="@+id/mode_options_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="0px"
+ android:layout_weight="1"
+ android:layout_gravity="center">
+ <com.android.camera.widget.ModeOptions
+ android:id="@+id/mode_options"
+ android:layout_width="@dimen/mode_options_height"
+ android:layout_height="match_parent"
+ android:layout_gravity="right"
+ android:visibility="visible"
+ android:background="#00000000" >
+ <com.android.camera.ui.TopRightWeightedLayout
+ android:id="@+id/mode_options_buttons"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:gravity="center"
+ android:layout_gravity="top"
+ android:visibility="visible"
+ android:background="@null"
+ android:alpha="0.0" >
+ <com.android.camera.MultiToggleImageButton
+ android:id="@+id/camera_toggle_button"
+ style="@style/ModeOption"
+ camera:imageIds="@array/camera_id_icons"
+ camera:contentDescriptionIds="@array/camera_id_descriptions" />
+ <com.android.camera.MultiToggleImageButton
+ android:id="@+id/flash_toggle_button"
+ style="@style/ModeOption"
+ camera:imageIds="@array/camera_flashmode_icons"
+ camera:contentDescriptionIds="@array/camera_flash_descriptions" />
+ <com.android.camera.MultiToggleImageButton
+ android:id="@+id/hdr_plus_toggle_button"
+ style="@style/ModeOption"
+ camera:imageIds="@array/pref_camera_hdr_plus_icons"
+ camera:contentDescriptionIds="@array/hdr_plus_descriptions" />
+ <com.android.camera.MultiToggleImageButton
+ android:id="@+id/grid_lines_toggle_button"
+ style="@style/ModeOption"
+ camera:imageIds="@array/grid_lines_icons"
+ camera:contentDescriptionIds="@array/grid_lines_descriptions" />
+ <!-- pano image ids and descriptions are added at runtime -->
+ <com.android.camera.MultiToggleImageButton
+ android:id="@+id/pano_orientation_toggle_button"
+ style="@style/ModeOption" />
+ </com.android.camera.ui.TopRightWeightedLayout>
+ </com.android.camera.widget.ModeOptions>
+ <FrameLayout
+ android:id="@+id/mode_options_toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="12dp"
+ android:layout_gravity="top|right" >
+ <ImageView
+ android:id="@+id/three_dots"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:scaleType="matrix"
+ android:src="@drawable/ic_options_active"
+ android:background="@null" />
+ <include layout="@layout/indicators" />
+ </FrameLayout>
+ </com.android.camera.widget.ModeOptionsOverlay>
+
+ <include layout="@layout/bottom_bar" />
+ </com.android.camera.ui.RotatableLinearLayout>
+
+</merge>