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:layout_width="match_parent" 22 android:layout_height="match_parent" > 23 24 <TextureView 25 android:id="@+id/preview_content" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" /> 28 29 <com.android.camera.ui.FocusOverlay 30 android:id="@+id/focus_overlay" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" /> 33 34 <com.android.camera.ui.CaptureAnimationOverlay 35 android:id="@+id/capture_overlay" 36 android:layout_width="match_parent" 37 android:layout_height="match_parent" 38 android:visibility="invisible" /> 39 40 <com.android.camera.ui.PreviewOverlay 41 android:id="@+id/preview_overlay" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" /> 44 45 <com.android.camera.ui.FaceView 46 android:id="@+id/face_view" 47 android:layout_width="match_parent" 48 android:layout_height="match_parent" /> 49 50 <com.android.camera.ui.GridLines 51 android:id="@+id/grid_lines" 52 android:layout_width="match_parent" 53 android:layout_height="match_parent" 54 android:layout_gravity="center_horizontal" 55 android:visibility="invisible" /> 56 57 <ImageView 58 android:id="@+id/intent_review_imageview" 59 android:layout_width="match_parent" 60 android:layout_height="match_parent" 61 android:scaleType="fitCenter" 62 android:background="@android:color/black" 63 android:visibility="gone" /> 64 65 <FrameLayout 66 android:id="@+id/module_layout" 67 android:layout_width="match_parent" 68 android:layout_height="match_parent" /> 69 70 <include layout="@layout/mode_options_bottombar" /> 71 72 <FrameLayout 73 android:id="@+id/tutorials_placeholder_wrapper" 74 android:layout_width="match_parent" 75 android:layout_height="match_parent" 76 android:background="@color/fullscreen_dialog_background_color" 77 android:visibility="gone" 78 android:clickable="true" > 79 </FrameLayout> 80 81 <include layout="@layout/mode_list_layout" /> 82 83 <LinearLayout 84 android:id="@+id/accessibility_affordances" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:orientation="horizontal" 88 android:layout_gravity="top|left" 89 android:visibility="gone"> 90 <Button 91 android:id="@+id/accessibility_mode_toggle_button" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:text="@string/btn_mode_list_toggle" 95 android:contentDescription="@string/accessibility_mode_list_toggle"/> 96 <Button 97 android:id="@+id/accessibility_filmstrip_toggle_button" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:text="@string/btn_filmstrip_toggle" 101 android:contentDescription="@string/accessibility_filmstrip_toggle"/> 102 </LinearLayout> 103</FrameLayout> 104