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