summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-15 16:15:19 +0800
committerWu-cheng Li <wuchengli@google.com>2011-08-15 19:40:10 +0800
commit98d615769af2b08bcddf02ee1b11f5288ec5cf92 (patch)
tree81eb6a5e1933af01c8cff2de2338d4bfb0b8c64e /res/layout
parentfbfd6d187b46cab35be980c586962d027e4a2409 (diff)
downloadpackages_apps_LegacyCamera-98d615769af2b08bcddf02ee1b11f5288ec5cf92.zip
packages_apps_LegacyCamera-98d615769af2b08bcddf02ee1b11f5288ec5cf92.tar.gz
packages_apps_LegacyCamera-98d615769af2b08bcddf02ee1b11f5288ec5cf92.tar.bz2
Add tap to focus toast.
bug:5039278 Change-Id: I1c47ffa46df7b6c1fdd447b688e1c7ccb724cb5a
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/preview_frame.xml1
-rw-r--r--res/layout/tap_to_focus_toast.xml35
2 files changed, 36 insertions, 0 deletions
diff --git a/res/layout/preview_frame.xml b/res/layout/preview_frame.xml
index f65f197..63887ff 100644
--- a/res/layout/preview_frame.xml
+++ b/res/layout/preview_frame.xml
@@ -59,5 +59,6 @@
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"/>
+ <include layout="@layout/tap_to_focus_toast"/>
</RelativeLayout>
</com.android.camera.PreviewFrameLayout>
diff --git a/res/layout/tap_to_focus_toast.xml b/res/layout/tap_to_focus_toast.xml
new file mode 100644
index 0000000..1ea67e7
--- /dev/null
+++ b/res/layout/tap_to_focus_toast.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 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.
+*/
+-->
+<com.android.camera.ui.RotateLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/tap_to_focus_prompt"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
+ android:visibility="gone">
+ <TextView
+ android:text="@string/tap_to_focus"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10dp"
+ android:paddingRight="10dp"
+ android:paddingTop="5dp"
+ android:paddingBottom="5dp"
+ android:textAppearance="?android:textAppearanceMedium"
+ android:background="@color/on_viewfinder_label_background_color" />
+</com.android.camera.ui.RotateLayout> \ No newline at end of file