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