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:padding="20dp" /> 91 92 <Button 93 android:id="@+id/play_captured_id" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:text="@string/play_capture" 97 android:padding="20dp" 98 android:enabled="false" /> 99 </LinearLayout> 100 101 <RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" 102 android:id="@+id/model_group_id" 103 android:layout_width="fill_parent" 104 android:layout_height="wrap_content" 105 android:padding="20dp" 106 android:orientation="vertical" /> 107 108 <ScrollView 109 android:id="@+id/scroller_id" 110 android:layout_width="fill_parent" 111 android:layout_height="wrap_content" 112 android:scrollbars="vertical" 113 android:fillViewport="true"> 114 115 <TextView 116 android:id="@+id/console" 117 android:paddingTop="20pt" 118 android:layout_height="fill_parent" 119 android:layout_width="fill_parent" 120 android:textSize="14dp" 121 android:layout_weight="1.0" 122 android:text="@string/none" /> 123 </ScrollView> 124 </LinearLayout> 125