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 </LinearLayout> 77 78 <LinearLayout 79 android:orientation="horizontal" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_gravity="right"> 83 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" 90 android:onClick="onCaptureAudioCheckboxClicked" 91 android:padding="20dp" /> 92 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" 98 android:onClick="onPlayCapturedAudioButtonClicked" 99 android:padding="20dp" 100 android:enabled="false" /> 101 </LinearLayout> 102 103 <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" 104 android:id="@+id/model_group_id" 105 android:layout_width="fill_parent" 106 android:layout_height="wrap_content" 107 android:padding="20dp" 108 android:orientation="vertical" /> 109 110 <ScrollView 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 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> 126</LinearLayout> 127