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 17<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:background="#bb7700" 22 android:orientation="horizontal"> 23 24 <com.example.android.tflitecamerademo.AutoFitTextureView 25 android:id="@+id/texture" 26 android:layout_width="0dp" 27 android:layout_height="match_parent" 28 android:layout_weight=".8"/> 29 30 <LinearLayout 31 android:layout_width="0dp" 32 android:layout_height="match_parent" 33 android:layout_weight=".2" 34 android:orientation="vertical"> 35 36 <ImageView 37 android:id="@+id/logoview" 38 android:layout_width="wrap_content" 39 android:layout_height="47dp" 40 android:scaleType="centerInside" 41 android:src="@drawable/logo"/> 42 43 <TextView 44 android:id="@+id/text" 45 android:layout_width="match_parent" 46 android:layout_height="160dp" 47 android:paddingTop="20dp" 48 android:textColor="#FFF" 49 android:textSize="20sp" 50 android:textStyle="bold"/> 51 <LinearLayout 52 android:id="@+id/modelLayout" 53 android:layout_width="match_parent" 54 android:layout_height="150dp" 55 android:orientation="vertical"> 56 57 <TextView 58 android:id="@+id/textView" 59 android:layout_width="match_parent" 60 android:layout_height="20dp" 61 android:text="@string/modelLabel" 62 android:textAlignment="center" 63 android:textColor="@android:color/white"/> 64 65 <ListView 66 android:id="@+id/model" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content"> 69 70 </ListView> 71 </LinearLayout> 72 <LinearLayout 73 android:id="@+id/deviceLayout" 74 android:layout_width="match_parent" 75 android:layout_height="150dp" 76 android:orientation="vertical"> 77 78 <TextView 79 android:id="@+id/textView2" 80 android:layout_width="match_parent" 81 android:layout_height="20dp" 82 android:text="@string/deviceLabel" 83 android:textAlignment="center" 84 android:textColor="@android:color/white"/> 85 86 <ListView 87 android:id="@+id/device" 88 android:layout_width="match_parent" 89 android:layout_height="wrap_content"/> 90 91 </LinearLayout> 92 93 <LinearLayout 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 > 97 98 <TextView 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:gravity="center" 102 android:text="Threads" 103 android:textAlignment="center" 104 android:textColor="@android:color/white"/> 105 106 <NumberPicker 107 android:id="@+id/np" 108 android:layout_width="match_parent" 109 android:layout_height="wrap_content" 110 android:layout_marginLeft="10dp" 111 android:theme="@style/AppTheme.Picker" 112 android:visibility="visible"/> 113 114 </LinearLayout> 115 116 </LinearLayout> 117</LinearLayout> 118 119