1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/main" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:gravity="center" 22 android:background="@drawable/appwidget_bg" > 23 24 <LinearLayout 25 android:id="@+id/btn_wifi" 26 android:layout_width="0dip" 27 android:layout_weight="1" 28 android:layout_height="match_parent" 29 android:background="@drawable/appwidget_button_left" 30 android:clickable="true" 31 android:focusable="true" 32 android:orientation="vertical"> 33 34 <ImageView 35 android:id="@+id/img_wifi" 36 android:layout_width="match_parent" 37 android:layout_height="0dip" 38 android:layout_weight="1" 39 android:scaleType="center" 40 /> 41 42 <ImageView 43 android:id="@+id/ind_wifi" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:scaleType="fitXY" 47 /> 48 </LinearLayout> 49 50 <ImageView 51 android:layout_width="1dip" 52 android:layout_height="match_parent" 53 android:background="@drawable/appwidget_settings_divider" 54 /> 55 56 <LinearLayout 57 android:id="@+id/btn_bluetooth" 58 android:layout_width="0dip" 59 android:layout_weight="1" 60 android:layout_height="match_parent" 61 android:background="@drawable/appwidget_button_center" 62 android:clickable="true" 63 android:focusable="true" 64 android:orientation="vertical"> 65 66 <ImageView 67 android:id="@+id/img_bluetooth" 68 android:layout_width="match_parent" 69 android:layout_height="0dip" 70 android:layout_weight="1" 71 android:scaleType="center" 72 /> 73 74 <ImageView 75 android:id="@+id/ind_bluetooth" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:scaleType="fitXY" 79 /> 80 81 </LinearLayout> 82 83 <ImageView 84 android:layout_width="1dip" 85 android:layout_height="match_parent" 86 android:background="@drawable/appwidget_settings_divider" 87 /> 88 89 <LinearLayout 90 android:id="@+id/btn_gps" 91 android:layout_width="0dip" 92 android:layout_weight="1" 93 android:layout_height="match_parent" 94 android:background="@drawable/appwidget_button_center" 95 android:clickable="true" 96 android:focusable="true" 97 android:orientation="vertical"> 98 99 <ImageView 100 android:id="@+id/img_gps" 101 android:layout_width="match_parent" 102 android:layout_height="0dip" 103 android:layout_weight="1" 104 android:scaleType="center" 105 /> 106 107 <ImageView 108 android:id="@+id/ind_gps" 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:scaleType="fitXY" 112 /> 113 </LinearLayout> 114 115 <ImageView 116 android:layout_width="1dip" 117 android:layout_height="match_parent" 118 android:background="@drawable/appwidget_settings_divider" 119 /> 120 121 <LinearLayout 122 android:id="@+id/btn_sync" 123 android:layout_width="0dip" 124 android:layout_weight="1" 125 android:layout_height="match_parent" 126 android:background="@drawable/appwidget_button_center" 127 android:clickable="true" 128 android:focusable="true" 129 android:orientation="vertical"> 130 131 <ImageView 132 android:id="@+id/img_sync" 133 android:layout_width="match_parent" 134 android:layout_height="0dip" 135 android:layout_weight="1" 136 android:scaleType="center" 137 /> 138 139 <ImageView 140 android:id="@+id/ind_sync" 141 android:layout_width="match_parent" 142 android:layout_height="wrap_content" 143 android:scaleType="fitXY" 144 /> 145 </LinearLayout> 146 147 <ImageView 148 android:layout_width="1dip" 149 android:layout_height="match_parent" 150 android:background="@drawable/appwidget_settings_divider" 151 /> 152 153 <LinearLayout 154 android:id="@+id/btn_brightness" 155 android:layout_width="0dip" 156 android:layout_weight="1" 157 android:layout_height="match_parent" 158 android:background="@drawable/appwidget_button_right" 159 android:clickable="true" 160 android:focusable="true" 161 android:orientation="vertical"> 162 163 <ImageView 164 android:id="@+id/img_brightness" 165 android:layout_width="match_parent" 166 android:layout_height="0dip" 167 android:layout_weight="1" 168 android:scaleType="center" 169 /> 170 171 <ImageView 172 android:id="@+id/ind_brightness" 173 android:layout_width="match_parent" 174 android:layout_height="wrap_content" 175 android:scaleType="fitXY" 176 /> 177 </LinearLayout> 178 179 </LinearLayout> 180