1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" > 19 <LinearLayout android:orientation="vertical" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:layout_margin="5dp"> 23 <TextView android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:text="@string/app_registration" 26 android:textSize="20sp" 27 android:textStyle="bold" /> 28 <LinearLayout android:orientation="horizontal" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_margin="5dp" 32 android:gravity="center" > 33 <Button android:id="@+id/button_register_app" 34 android:layout_height="wrap_content" 35 android:layout_width="wrap_content" 36 android:minWidth="130dp" 37 android:text="@string/register" /> 38 <Button android:id="@+id/button_unregister_app" 39 android:layout_height="wrap_content" 40 android:layout_width="wrap_content" 41 android:minWidth="130dp" 42 android:text="@string/unregister" /> 43 </LinearLayout> 44 45 <TextView android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:text="@string/channel_connection" 48 android:textSize="20sp" 49 android:textStyle="bold" /> 50 <TextView android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="@string/channel_connection_desc" 53 android:textSize="14sp" /> 54 <LinearLayout android:orientation="horizontal" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:layout_margin="5dp" 58 android:gravity="center" > 59 <Button android:id="@+id/button_connect_channel" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:minWidth="130dp" 63 android:text="@string/connect" /> 64 <Button android:id="@+id/button_disconnect_channel" 65 android:layout_height="wrap_content" 66 android:layout_width="wrap_content" 67 android:minWidth="130dp" 68 android:text="@string/disconnect" /> 69 </LinearLayout> 70 71 <LinearLayout 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:layout_margin="5dp" 75 android:orientation="horizontal" > 76 <TextView android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:text="@string/connection_state" 79 android:textSize="20sp" 80 android:textStyle="bold" /> 81 <Space android:layout_width="10dp" 82 android:layout_height="0px" /> 83 <TextView android:id="@+id/connect_ind" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:text="@string/disconnected" 87 android:textSize="18sp"/> 88 </LinearLayout> 89 90 <LinearLayout 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content" 93 android:layout_margin="5dp" 94 android:orientation="horizontal" > 95 <TextView android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/data_ind" 98 android:textSize="20sp" 99 android:textStyle="bold" /> 100 <Space android:layout_width="10dp" 101 android:layout_height="0px" /> 102 <ImageView android:id="@+id/data_ind" 103 android:layout_width="20dp" 104 android:layout_height="20dp" 105 android:layout_marginTop="4dp" 106 android:src="@drawable/led_indicator" /> 107 </LinearLayout> 108 <View android:layout_width="match_parent" 109 android:layout_height="1dp" 110 android:background="#FFFFFF"/> 111 <TextView android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:layout_margin="5dp" 114 android:text="@string/status_msg" 115 android:textSize="20sp" 116 android:textStyle="bold" /> 117 <TextView android:id="@+id/status_msg" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:text="@string/empty" 121 android:textSize="18sp" 122 android:layout_margin="10dp"/> 123 </LinearLayout> 124 </ScrollView> 125