summaryrefslogtreecommitdiffstats
path: root/samples/training/network-usage/res/xml/preferences.xml
diff options
context:
space:
mode:
authorKatie McCormick <kmccormick@google.com>2012-03-16 17:47:55 -0700
committerKatie McCormick <kmccormick@google.com>2012-08-08 11:27:09 -0700
commit2f8cc17f5fbc2e05ac0889fbbddf4e530750087b (patch)
treec33a8b7880f4cc821e2067c487badf69d98ea21f /samples/training/network-usage/res/xml/preferences.xml
parent0d3a127742b56a9aae9c9c018b7042f49902db8a (diff)
downloadframeworks_base-2f8cc17f5fbc2e05ac0889fbbddf4e530750087b.zip
frameworks_base-2f8cc17f5fbc2e05ac0889fbbddf4e530750087b.tar.gz
frameworks_base-2f8cc17f5fbc2e05ac0889fbbddf4e530750087b.tar.bz2
cherrypick from ics-mr1 docs: source for nw app Change-Id: If50f407a0e56fa802fe9beedaa650e3a131872b2
Change-Id: I55d8668f4065129c844ada239f268a6621df4780
Diffstat (limited to 'samples/training/network-usage/res/xml/preferences.xml')
-rw-r--r--samples/training/network-usage/res/xml/preferences.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/samples/training/network-usage/res/xml/preferences.xml b/samples/training/network-usage/res/xml/preferences.xml
new file mode 100644
index 0000000..801ba79
--- /dev/null
+++ b/samples/training/network-usage/res/xml/preferences.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright (C) 2012 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.
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <ListPreference
+ android:title="Download Feed"
+ android:summary="Network connectivity required to download the feed."
+ android:key="listPref"
+ android:defaultValue="Wi-Fi"
+ android:entries="@array/listArray"
+ android:entryValues="@array/listValues"
+ />
+ <CheckBoxPreference
+ android:title="Show Summaries"
+ android:defaultValue="false"
+ android:summary="Show a summary for each link."
+ android:key="summaryPref" />
+</PreferenceScreen>