summaryrefslogtreecommitdiffstats
path: root/res/layout-land
diff options
context:
space:
mode:
authorKen Shirriff <kens@google.com>2009-06-29 16:23:07 -0700
committerKen Shirriff <kens@google.com>2009-06-29 16:43:23 -0700
commit311356dd71eb33a383fb9a5b470517103ea1f424 (patch)
treeac469f8b68fa94721907a406e2312c491ce5d6fb /res/layout-land
parent116d85eaa7e6a97e5fa0c3c01cb16822a3b6519c (diff)
downloadpackages_apps_Settings-311356dd71eb33a383fb9a5b470517103ea1f424.zip
packages_apps_Settings-311356dd71eb33a383fb9a5b470517103ea1f424.tar.gz
packages_apps_Settings-311356dd71eb33a383fb9a5b470517103ea1f424.tar.bz2
Redo power widget layout with the proper widget style.
The power widget now uses the fuzzy-edged widget background. It has a resonable layout in portrait and landscape. appwidget_inner is the background for a button on the inside, with a border on the left. appwidget_outer is the background for a button on the outside (i.e. leftmost); it does not have a border.
Diffstat (limited to 'res/layout-land')
-rw-r--r--res/layout-land/widget.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/res/layout-land/widget.xml b/res/layout-land/widget.xml
new file mode 100644
index 0000000..1e7fb5f
--- /dev/null
+++ b/res/layout-land/widget.xml
@@ -0,0 +1,63 @@
+<?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="fill_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/appwidget_bg" >
+
+ <ImageButton
+ android:id="@+id/btn_wifi"
+ android:layout_width="79dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_outer"
+ android:layout_gravity="center_horizontal"
+ />
+
+ <ImageButton
+ android:id="@+id/btn_bluetooth"
+ android:layout_width="79dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_inner"
+ android:layout_gravity="center_horizontal"
+ />
+
+ <ImageButton
+ android:id="@+id/btn_gps"
+ android:layout_width="79dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_inner"
+ android:layout_gravity="center_horizontal"
+ />
+
+ <ImageButton
+ android:id="@+id/btn_sync"
+ android:layout_width="79dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_inner"
+ android:layout_gravity="center_horizontal"
+ />
+
+ <ImageButton
+ android:id="@+id/btn_brightness"
+ android:layout_width="78dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_inner"
+ android:layout_gravity="center_horizontal"
+ />
+
+ </LinearLayout>