1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2013 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<!-- TODO: Now camera root gets cleared during mode switch. We need to move mode 17 switcher into camera root when refactor is finished. --> 18<FrameLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/camera_app_root" 21 android:background="@android:color/black" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" > 24 25 <TextureView 26 android:id="@+id/preview_content" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" /> 29 30 <com.android.camera.ui.focus.FocusRingView 31 android:id="@+id/focus_ring" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" /> 34 35 <com.android.camera.ui.CaptureAnimationOverlay 36 android:id="@+id/capture_overlay" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:visibility="invisible" /> 40 41 <com.android.camera.ui.PreviewOverlay 42 android:id="@+id/preview_overlay" 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" /> 45 46 <com.android.camera.ui.FaceView 47 android:id="@+id/face_view" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" /> 50 51 <com.android.camera.ui.GridLines 52 android:id="@+id/grid_lines" 53 android:layout_width="match_parent" 54 android:layout_height="match_parent" 55 android:layout_gravity="center_horizontal" 56 android:visibility="invisible" /> 57 58 <ImageView 59 android:id="@+id/intent_review_imageview" 60 android:layout_width="match_parent" 61 android:layout_height="match_parent" 62 android:scaleType="fitCenter" 63 android:background="@android:color/black" 64 android:visibility="gone" /> 65 66 <FrameLayout 67 android:id="@+id/module_layout" 68 android:layout_width="match_parent" 69 android:layout_height="match_parent" /> 70 71 <include layout="@layout/sticky_bottom_capture_layout" /> 72 73 <FrameLayout 74 android:id="@+id/tutorials_placeholder_wrapper" 75 android:layout_width="match_parent" 76 android:layout_height="match_parent" 77 android:background="@color/fullscreen_dialog_background_color" 78 android:visibility="gone" 79 android:clickable="true" > 80 </FrameLayout> 81 82 <include layout="@layout/mode_list_layout" /> 83 84 <LinearLayout 85 android:id="@+id/accessibility_affordances" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:orientation="horizontal" 89 android:layout_gravity="top|left" 90 android:visibility="gone"> 91 <Button 92 android:id="@+id/accessibility_mode_toggle_button" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:text="@string/btn_mode_list_toggle" 96 android:contentDescription="@string/accessibility_mode_list_toggle"/> 97 <Button 98 android:id="@+id/accessibility_filmstrip_toggle_button" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:text="@string/btn_filmstrip_toggle" 102 android:contentDescription="@string/accessibility_filmstrip_toggle"/> 103 <Button 104 android:id="@+id/accessibility_zoom_minus_button" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:text="@string/btn_zoom_minus" 108 android:visibility="gone" 109 android:contentDescription="@string/accessibility_mode_zoom_minus"/> 110 <Button 111 android:id="@+id/accessibility_zoom_plus_button" 112 android:layout_width="wrap_content" 113 android:layout_height="wrap_content" 114 android:text="@string/btn_zoom_plus" 115 android:visibility="gone" 116 android:contentDescription="@string/accessibility_mode_zoom_plus"/> 117 </LinearLayout> 118</FrameLayout> 119