summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-06-20 17:06:52 -0700
committerJeff Sharkey <jsharkey@android.com>2011-06-20 17:23:43 -0700
commit29d56b303f39012c0fb83a2b138e227b5413f4ce (patch)
tree8cd2e7dfff2edb61d816011256e60d64a1ce358f /res/layout
parent827fde31e8f580f682d86a0e83b5700f602e4bbc (diff)
downloadpackages_apps_settings-29d56b303f39012c0fb83a2b138e227b5413f4ce.zip
packages_apps_settings-29d56b303f39012c0fb83a2b138e227b5413f4ce.tar.gz
packages_apps_settings-29d56b303f39012c0fb83a2b138e227b5413f4ce.tar.bz2
Detect radios in data usage, control them.
Teach data usage to inspect hardware radios to determine which tabs and options to display. Control "Mobile data enabled" state through ConnectivityManager. Persist "Show Wi-Fi" state. Bug: 4599714, 4645276, 4620024, 4599271, 4596812 Change-Id: I4479593d74a8ba744a056767422f1e03182a7a94
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/preference.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/res/layout/preference.xml b/res/layout/preference.xml
new file mode 100644
index 0000000..06d8f24
--- /dev/null
+++ b/res/layout/preference.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="48dip"
+ android:gravity="center_vertical"
+ android:paddingRight="?android:attr/scrollbarSize"
+ android:background="?android:attr/selectableItemBackground">
+
+ <RelativeLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="15dip"
+ android:layout_marginRight="6dip"
+ android:layout_marginTop="6dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
+ <TextView
+ android:id="@+android:id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:ellipsize="marquee"
+ android:fadingEdge="horizontal" />
+
+ <TextView
+ android:id="@android:id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/title"
+ android:layout_alignLeft="@android:id/title"
+ android:visibility="gone"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
+ android:maxLines="4" />
+
+ </RelativeLayout>
+
+ <LinearLayout
+ android:id="@android:id/widget_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="vertical" />
+
+</LinearLayout>