Arunesh Mishra | a772e5f | 2016-01-25 10:33:11 -0800 | [diff] [blame] | 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" |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 21 | android:orientation="vertical"> |
Arunesh Mishra | a772e5f | 2016-01-25 10:33:11 -0800 | [diff] [blame] | 22 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 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 | </LinearLayout> |
| 77 | |
| 78 | <LinearLayout |
| 79 | android:orientation="horizontal" |
| 80 | android:layout_width="match_parent" |
Arunesh Mishra | a772e5f | 2016-01-25 10:33:11 -0800 | [diff] [blame] | 81 | android:layout_height="wrap_content" |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 82 | android:layout_gravity="right"> |
Arunesh Mishra | a772e5f | 2016-01-25 10:33:11 -0800 | [diff] [blame] | 83 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 84 | <CheckBox |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:text="@string/capture" |
| 88 | android:id="@+id/caputre_check_box" |
| 89 | android:layout_gravity="center_horizontal" |
Chris Thornton | d956889 | 2016-07-15 19:55:32 -0700 | [diff] [blame^] | 90 | android:onClick="onCaptureAudioCheckboxClicked" |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 91 | android:padding="20dp" /> |
Arunesh Mishra | a772e5f | 2016-01-25 10:33:11 -0800 | [diff] [blame] | 92 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 93 | <Button |
| 94 | android:id="@+id/play_captured_id" |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:text="@string/play_capture" |
Chris Thornton | d956889 | 2016-07-15 19:55:32 -0700 | [diff] [blame^] | 98 | android:onClick="onPlayCapturedAudioButtonClicked" |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 99 | android:padding="20dp" |
| 100 | android:enabled="false" /> |
| 101 | </LinearLayout> |
Arunesh Mishra | 3fff7f5 | 2016-02-09 12:15:19 -0800 | [diff] [blame] | 102 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 103 | <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" |
Chris Thornton | 15ab2b4 | 2016-04-10 20:15:33 -0700 | [diff] [blame] | 104 | android:id="@+id/model_group_id" |
Arunesh Mishra | 3fff7f5 | 2016-02-09 12:15:19 -0800 | [diff] [blame] | 105 | android:layout_width="fill_parent" |
| 106 | android:layout_height="wrap_content" |
| 107 | android:padding="20dp" |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 108 | android:orientation="vertical" /> |
Arunesh Mishra | 3fff7f5 | 2016-02-09 12:15:19 -0800 | [diff] [blame] | 109 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 110 | <ScrollView |
Arunesh Mishra | 933da81 | 2016-02-18 15:31:54 -0800 | [diff] [blame] | 111 | android:id="@+id/scroller_id" |
| 112 | android:layout_width="fill_parent" |
| 113 | android:layout_height="wrap_content" |
| 114 | android:scrollbars="vertical" |
| 115 | android:fillViewport="true"> |
| 116 | |
Chris Thornton | dfa7c3b | 2016-06-30 22:05:51 -0700 | [diff] [blame] | 117 | <TextView |
| 118 | android:id="@+id/console" |
| 119 | android:paddingTop="20pt" |
| 120 | android:layout_height="fill_parent" |
| 121 | android:layout_width="fill_parent" |
| 122 | android:textSize="14dp" |
| 123 | android:layout_weight="1.0" |
| 124 | android:text="@string/none" /> |
| 125 | </ScrollView> |
Arunesh Mishra | 3fff7f5 | 2016-02-09 12:15:19 -0800 | [diff] [blame] | 126 | </LinearLayout> |