1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 android:layout_width="fill_parent" 5 android:layout_height="fill_parent" 6 > 7 <LinearLayout 8 android:orientation="horizontal" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content" 11 > 12 <TextView 13 android:id="@+id/callback_status" 14 android:layout_width="wrap_content" 15 android:layout_height="wrap_content" 16 android:textSize="13sp" 17 android:typeface="monospace" 18 /> 19 <TextView 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:textSize="13sp" 23 android:typeface="monospace" 24 android:text=" | " 25 /> 26 <TextView 27 android:id="@+id/java_midi_status" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:textSize="13sp" 31 android:typeface="monospace" 32 /> 33 <TextView 34 android:layout_width="0px" 35 android:layout_height="wrap_content" 36 android:layout_weight="1" 37 android:textSize="13sp" 38 android:typeface="monospace" 39 android:text=" " 40 /> 41 </LinearLayout> 42 <HorizontalScrollView 43 android:layout_width="fill_parent" 44 android:layout_height="wrap_content" 45 android:paddingTop="6sp" 46 android:paddingBottom="6sp" 47 > 48 <RadioGroup 49 android:id="@+id/devices" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:orientation="horizontal" 53 android:checkedButton="@+id/device_none" 54 > 55 <RadioButton 56 android:id="@+id/device_none" 57 android:text="None" 58 /> 59 </RadioGroup> 60 </HorizontalScrollView> 61 <com.example.android.nativemididemo.TouchableScrollView android:id="@+id/messages_scroll" 62 android:layout_width="match_parent" 63 android:layout_height="0px" 64 android:layout_weight="1" 65 > 66 <TextView android:id="@+id/messages" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:textSize="13sp" 70 android:typeface="monospace" 71 /> 72 </com.example.android.nativemididemo.TouchableScrollView> 73 <LinearLayout 74 android:orientation="horizontal" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 > 78 <Button android:id="@+id/clear_messages" 79 android:layout_width="0px" 80 android:layout_height="wrap_content" 81 android:layout_weight="1" 82 android:text="@string/clear_messages" 83 android:onClick="onClearMessages" 84 /> 85 <Button android:id="@+id/close_port" 86 android:layout_width="0px" 87 android:layout_height="wrap_content" 88 android:layout_weight="1" 89 android:text="@string/close_port" 90 android:onClick="onClosePort" 91 /> 92 </LinearLayout> 93 </LinearLayout> 94