summaryrefslogtreecommitdiffstats
path: root/res/layout-port
diff options
context:
space:
mode:
authorSpike Sprague <spikuru@google.com>2014-03-31 13:58:01 -0700
committerSpike Sprague <spikuru@google.com>2014-03-31 18:01:11 -0700
commitb36c6b7a5262e2d80b4c6e3e17cc3cb79b6a522a (patch)
tree3230c1a9cf1a51c4cabfa6128d42241ae862b50b /res/layout-port
parent33e3133bb7161fad5f97880facdf8bea97d930d0 (diff)
downloadandroid_packages_apps_Camera2-b36c6b7a5262e2d80b4c6e3e17cc3cb79b6a522a.tar.gz
android_packages_apps_Camera2-b36c6b7a5262e2d80b4c6e3e17cc3cb79b6a522a.tar.bz2
android_packages_apps_Camera2-b36c6b7a5262e2d80b4c6e3e17cc3cb79b6a522a.zip
keep three dots option toggle on the screen
bug: 13716654 Change-Id: I142d2ce8c026ad4f4fded15475e4d2a42e10f859
Diffstat (limited to 'res/layout-port')
-rw-r--r--res/layout-port/indicators.xml43
-rw-r--r--res/layout-port/mode_options_bottombar.xml18
2 files changed, 45 insertions, 16 deletions
diff --git a/res/layout-port/indicators.xml b/res/layout-port/indicators.xml
new file mode 100644
index 000000000..10367b697
--- /dev/null
+++ b/res/layout-port/indicators.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 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. -->
+ <!-- TODO: make horizontal once nine patch stretches horizontally -->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/mode_options_toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/mode_options_toggle_padding"
+ android:layout_margin="@dimen/mode_options_toggle_padding"
+ android:orientation="horizontal"
+ android:contentDescription="@string/accessibility_mode_options"
+ android:background="@drawable/bg_options_indicator"
+ android:layout_gravity="bottom|right" >
+ <ImageView
+ android:id="@+id/pano_indicator"
+ style="@style/IndicatorIcon" />
+ <ImageView
+ android:id="@+id/hdr_indicator"
+ style="@style/IndicatorIcon" />
+ <ImageView
+ android:id="@+id/flash_indicator"
+ style="@style/IndicatorIcon" />
+ <ImageView
+ android:id="@+id/three_dots"
+ style="@style/IndicatorIcon"
+ android:src="@drawable/ic_options_port"
+ android:contentDescription="@string/accessibility_mode_options"
+ android:visibility="visible" />
+</LinearLayout>
diff --git a/res/layout-port/mode_options_bottombar.xml b/res/layout-port/mode_options_bottombar.xml
index dfe54dfdd..a9ea3a6c7 100644
--- a/res/layout-port/mode_options_bottombar.xml
+++ b/res/layout-port/mode_options_bottombar.xml
@@ -77,22 +77,8 @@
</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="@dimen/mode_options_toggle_padding"
- android:layout_gravity="bottom|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:contentDescription="@string/accessibility_mode_options"
- android:background="@null" />
- <include layout="@layout/indicators" />
- </FrameLayout>
+ <include layout="@layout/indicators" />
+
</com.android.camera.widget.ModeOptionsOverlay>
<include layout="@layout/bottom_bar" />