Home | History | Annotate | Download | only in layout
      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 
     17 <!-- This layout is shared by phone and tablet in both landscape and portrait
     18  orientation. The purpose of having this layout is to eventually not manually
     19  recreate views when the orientation changes, by migrating the views that do not
     20  need to be recreated in onConfigurationChanged from old photo_module to this
     21  layout. -->
     22 
     23 <merge xmlns:android="http://schemas.android.com/apk/res/android"
     24     android:layout_width="match_parent"
     25     android:layout_height="match_parent"
     26     android:layout_gravity="center">
     27     <TextureView
     28         android:id="@+id/preview_content"
     29         android:layout_width="match_parent"
     30         android:layout_height="match_parent" />
     31     <View
     32         android:id="@+id/flash_overlay"
     33         android:layout_width="match_parent"
     34         android:layout_height="match_parent"
     35         android:background="@android:color/white"
     36         android:visibility="gone"
     37         android:alpha="0" />
     38     <ViewStub android:id="@+id/face_view_stub"
     39         android:inflatedId="@+id/face_view"
     40         android:layout="@layout/face_view"
     41         android:layout_width="match_parent"
     42         android:layout_height="match_parent"
     43         android:visibility="gone"/>
     44     <com.android.camera.ui.RenderOverlay
     45         android:id="@+id/render_overlay"
     46         android:layout_width="match_parent"
     47         android:layout_height="match_parent" />
     48     <include layout="@layout/camera_controls"
     49         android:layout_gravity="center"
     50         style="@style/CameraControls"/>
     51 </merge>