Files
app_Settings/res/layout/widget.xml
Peter Ng b2dca8fae1 Power widget visual updates
-light spill added
-padding top to make up for new shadow and light spill

Change-Id: I5d6bee6efd58736a812b9c3d144b8735d30865f5
2011-09-09 10:40:43 -07:00

185 lines
5.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:background="@drawable/appwidget_bg_holo" >
<LinearLayout
android:id="@+id/btn_wifi"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:background="@drawable/appwidget_button_left"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">
<ImageView
android:id="@+id/img_wifi"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:scaleType="center"
/>
<ImageView
android:id="@+id/ind_wifi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
/>
</LinearLayout>
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
android:id="@+id/btn_bluetooth"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:background="@drawable/appwidget_button_center"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">
<ImageView
android:id="@+id/img_bluetooth"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:scaleType="center"
/>
<ImageView
android:id="@+id/ind_bluetooth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
/>
</LinearLayout>
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
android:id="@+id/btn_gps"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:background="@drawable/appwidget_button_center"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">
<ImageView
android:id="@+id/img_gps"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:scaleType="center"
/>
<ImageView
android:id="@+id/ind_gps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
/>
</LinearLayout>
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
android:id="@+id/btn_sync"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:background="@drawable/appwidget_button_center"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">
<ImageView
android:id="@+id/img_sync"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:scaleType="center"
/>
<ImageView
android:id="@+id/ind_sync"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
/>
</LinearLayout>
<ImageView
android:layout_width="1dip"
android:layout_height="match_parent"
android:background="@drawable/appwidget_settings_divider_holo"
/>
<LinearLayout
android:id="@+id/btn_brightness"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:paddingTop="12dp"
android:background="@drawable/appwidget_button_right"
android:clickable="true"
android:focusable="true"
android:orientation="vertical">
<ImageView
android:id="@+id/img_brightness"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:scaleType="center"
/>
<ImageView
android:id="@+id/ind_brightness"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
/>
</LinearLayout>
</LinearLayout>