1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 2015 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent"> 19 20 <com.example.android.camera2raw.AutoFitTextureView 21 android:id="@+id/texture" 22 android:layout_width="wrap_content" 23 android:layout_height="wrap_content" 24 android:layout_alignParentStart="true" 25 android:layout_alignParentTop="true" /> 26 27 <FrameLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:layout_alignParentBottom="true" 31 android:layout_alignParentStart="true" 32 android:layout_below="@id/texture" 33 android:background="#4285f4"> 34 35 <Button 36 android:id="@+id/picture" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:layout_gravity="center" 40 android:text="@string/picture" /> 41 42 <ImageButton 43 android:id="@+id/info" 44 android:contentDescription="@string/description_info" 45 style="@android:style/Widget.Material.Light.Button.Borderless" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_gravity="center_vertical|right" 49 android:padding="20dp" 50 android:src="@drawable/ic_action_info" /> 51 52 </FrameLayout> 53 54</RelativeLayout> 55