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    xmlns:app="http://schemas.android.com/apk/res-auto"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:background="#bb7700">
21
22    <com.example.android.tflitecamerademo.AutoFitTextureView
23        android:id="@+id/texture"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:layout_weight="1" />
27
28    <LinearLayout
29        android:layout_width="wrap_content"
30        android:layout_height="wrap_content"
31        android:layout_above="@+id/bottom_info_view"
32        android:layout_alignParentEnd="false"
33        android:layout_alignParentStart="true"
34        android:layout_alignParentTop="false"
35        android:background="#bb7700"
36        android:orientation="vertical"
37        android:weightSum="100">
38
39        <ImageView
40            android:id="@+id/logoview2"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_weight="30"
44            android:scaleType="fitStart"
45            android:src="@drawable/logo" />
46
47        <TextView
48            android:id="@+id/text"
49            android:layout_width="match_parent"
50            android:layout_height="wrap_content"
51            android:layout_alignParentBottom="true"
52            android:layout_alignParentEnd="true"
53            android:layout_alignParentRight="true"
54            android:layout_weight="30"
55            android:textColor="#FFF"
56            android:textSize="20sp"
57            android:textStyle="bold" />
58
59    </LinearLayout>
60
61    <LinearLayout
62        android:id="@+id/bottom_info_view"
63        android:layout_width="match_parent"
64        android:layout_height="200dp"
65
66        android:layout_alignParentBottom="true"
67        android:layout_marginBottom="10dp"
68        android:background="#513400"
69        android:orientation="horizontal">
70
71        <LinearLayout
72            android:layout_width="wrap_content"
73            android:layout_height="match_parent"
74            android:orientation="vertical">
75
76            <TextView
77                android:layout_width="wrap_content"
78                android:layout_height="wrap_content"
79                android:gravity="center"
80                android:text="Threads"
81                android:textAlignment="center"
82                android:textColor="@android:color/white" />
83
84            <NumberPicker
85                android:id="@+id/np"
86                android:layout_width="wrap_content"
87                android:layout_height="wrap_content"
88                android:layout_marginLeft="10dp"
89                android:theme="@style/AppTheme.Picker"
90                android:visibility="visible" />
91
92        </LinearLayout>
93
94        <LinearLayout
95            android:id="@+id/modelLayout"
96            android:layout_width="150dp"
97            android:layout_height="match_parent"
98            android:orientation="vertical">
99
100            <TextView
101                android:id="@+id/textView"
102                android:layout_width="match_parent"
103                android:layout_height="20dp"
104                android:text="@string/modelLabel"
105                android:textAlignment="center"
106                android:textColor="@android:color/white" />
107
108            <ListView
109                android:id="@+id/model"
110                android:layout_width="match_parent"
111                android:layout_height="180dp">
112
113            </ListView>
114        </LinearLayout>
115
116        <LinearLayout
117            android:id="@+id/deviceLayout"
118            android:layout_width="140dp"
119            android:layout_height="match_parent"
120            android:orientation="vertical">
121
122            <TextView
123                android:id="@+id/textView2"
124                android:layout_width="match_parent"
125                android:layout_height="20dp"
126                android:text="@string/deviceLabel"
127                android:textAlignment="center"
128                android:textColor="@android:color/white" />
129
130            <ListView
131                android:id="@+id/device"
132                android:layout_width="match_parent"
133                android:layout_height="180dp" />
134
135        </LinearLayout>
136
137    </LinearLayout>
138
139
140</RelativeLayout>
141