1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2014 Google Inc.
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical">
22
23    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content">
26
27        <Button
28            android:layout_width="wrap_content"
29            android:layout_height="wrap_content"
30            android:text="@string/load"
31            android:onClick="onLoadButtonClicked"
32            android:padding="20dp" />
33
34        <Button
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:text="@string/start_recog"
38            android:onClick="onStartRecognitionButtonClicked"
39            android:padding="20dp" />
40
41        <Button
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:text="@string/stop_recog"
45            android:onClick="onStopRecognitionButtonClicked"
46            android:padding="20dp" />
47
48        <Button
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:text="@string/unload"
52            android:onClick="onUnloadButtonClicked"
53            android:padding="20dp" />
54
55    </LinearLayout>
56
57    <LinearLayout
58        android:orientation="horizontal"
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content">
61
62        <Button
63            android:layout_width="wrap_content"
64            android:layout_height="wrap_content"
65            android:text="@string/reload"
66            android:onClick="onReloadButtonClicked"
67            android:padding="20dp" />
68
69        <Button
70            android:id="@+id/play_trigger_id"
71            android:layout_width="wrap_content"
72            android:layout_height="wrap_content"
73            android:text="@string/play_trigger"
74            android:onClick="onPlayTriggerButtonClicked"
75            android:padding="20dp" />
76
77        <Button
78            android:id="@+id/get_state_id"
79            android:layout_width="wrap_content"
80            android:layout_height="wrap_content"
81            android:text="@string/get_model_state"
82            android:onClick="onGetModelStateButtonClicked"
83            android:padding="20dp" />
84    </LinearLayout>
85
86    <LinearLayout
87        android:orientation="horizontal"
88        android:layout_width="match_parent"
89        android:layout_height="wrap_content"
90        android:layout_gravity="right">
91
92        <CheckBox
93            android:layout_width="wrap_content"
94            android:layout_height="wrap_content"
95            android:text="@string/capture"
96            android:id="@+id/caputre_check_box"
97            android:layout_gravity="center_horizontal"
98            android:onClick="onCaptureAudioCheckboxClicked"
99            android:padding="20dp" />
100
101        <Button
102            android:id="@+id/play_captured_id"
103            android:layout_width="wrap_content"
104            android:layout_height="wrap_content"
105            android:text="@string/play_capture"
106            android:onClick="onPlayCapturedAudioButtonClicked"
107            android:padding="20dp"
108            android:enabled="false" />
109    </LinearLayout>
110
111    <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
112        android:id="@+id/model_group_id"
113        android:layout_width="fill_parent"
114        android:layout_height="wrap_content"
115        android:padding="20dp"
116        android:orientation="vertical" />
117
118    <ScrollView
119       android:id="@+id/scroller_id"
120       android:layout_width="fill_parent"
121       android:layout_height="wrap_content"
122       android:scrollbars="vertical"
123       android:fillViewport="true">
124
125        <TextView
126            android:id="@+id/console"
127            android:paddingTop="20pt"
128            android:layout_height="fill_parent"
129            android:layout_width="fill_parent"
130            android:textSize="14dp"
131            android:layout_weight="1.0"
132            android:text="@string/none" />
133    </ScrollView>
134</LinearLayout>
135