Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?><!--
      2  Copyright 2014 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.camera2basic.AutoFitTextureView
     21         android:id="@+id/texture"
     22         android:layout_width="wrap_content"
     23         android:layout_height="wrap_content"
     24         android:layout_alignParentBottom="true"
     25         android:layout_alignParentStart="true"
     26         android:layout_alignParentTop="true" />
     27 
     28     <FrameLayout
     29         android:id="@+id/control"
     30         android:layout_width="match_parent"
     31         android:layout_height="wrap_content"
     32         android:layout_alignParentBottom="true"
     33         android:layout_alignParentEnd="true"
     34         android:layout_alignParentTop="true"
     35         android:layout_toRightOf="@id/texture"
     36         android:background="@color/control_background"
     37         android:orientation="horizontal">
     38 
     39         <Button
     40             android:id="@+id/picture"
     41             android:layout_width="wrap_content"
     42             android:layout_height="wrap_content"
     43             android:layout_gravity="center"
     44             android:text="@string/picture" />
     45 
     46         <ImageButton
     47             android:id="@+id/info"
     48             style="@android:style/Widget.Material.Light.Button.Borderless"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content"
     51             android:layout_gravity="center_horizontal|bottom"
     52             android:contentDescription="@string/description_info"
     53             android:padding="20dp"
     54             android:src="@drawable/ic_action_info" />
     55 
     56 
     57     </FrameLayout>
     58 
     59 </RelativeLayout>
     60