diff options
author | Gilles Debunne <debunne@google.com> | 2011-07-07 16:04:53 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-07 16:04:53 -0700 |
commit | 606d8788520e854cca641e91aa7435366a024733 (patch) | |
tree | a45c952a204323977f3392a57c6909068b91738b /res | |
parent | 8b3c13bf48148d322274a81b73351d2c1c4f4151 (diff) | |
parent | 18e9992a5e5f515566aa9ea861b2e1a3c2450ebc (diff) | |
download | packages_apps_Settings-606d8788520e854cca641e91aa7435366a024733.zip packages_apps_Settings-606d8788520e854cca641e91aa7435366a024733.tar.gz packages_apps_Settings-606d8788520e854cca641e91aa7435366a024733.tar.bz2 |
Merge "Changed text and appearance when Wifi/Bluetooth is off"
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/custom_preference_list_fragment.xml | 45 | ||||
-rw-r--r-- | res/layout/list_content_with_empty_view.xml | 35 | ||||
-rw-r--r-- | res/values/strings.xml | 8 |
3 files changed, 28 insertions, 60 deletions
diff --git a/res/layout/custom_preference_list_fragment.xml b/res/layout/custom_preference_list_fragment.xml index f0bf010..4803639 100644 --- a/res/layout/custom_preference_list_fragment.xml +++ b/res/layout/custom_preference_list_fragment.xml @@ -1,20 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2010, 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. -*/ +<!-- Copyright (C) 2010 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. --> <!-- Based on preference_list_fragment.xml in framework --> @@ -26,14 +23,20 @@ <ListView android:id="@android:id/list" android:layout_width="match_parent" - android:layout_height="0px" - android:layout_weight="1" + android:layout_height="match_parent" android:paddingTop="0dip" - android:paddingBottom="0dip" - android:paddingLeft="0dip" - android:paddingRight="0dip" + android:paddingBottom="@*android:dimen/preference_fragment_padding_bottom" + android:paddingLeft="@*android:dimen/preference_fragment_padding_side" + android:paddingRight="@*android:dimen/preference_fragment_padding_side" android:clipToPadding="false" android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/transparent" android:scrollbarAlwaysDrawVerticalTrack="true" /> + + <TextView android:id="@+id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="5dip" + android:gravity="center" + android:visibility="gone" /> </LinearLayout> diff --git a/res/layout/list_content_with_empty_view.xml b/res/layout/list_content_with_empty_view.xml deleted file mode 100644 index 1d4dcdc..0000000 --- a/res/layout/list_content_with_empty_view.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 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. ---> - - -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" > - - <ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:drawSelectorOnTop="false" - /> - - <TextView android:id="@+id/empty" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:padding="5dip" - android:gravity="center" - android:visibility="gone" /> - -</FrameLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 0378aeb..251da79 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -281,7 +281,7 @@ <string name="bluetooth_ask_enablement_and_lasting_discovery" product="default">"An application on your phone is requesting permission to turn on Bluetooth and to make your phone discoverable by other devices. Do you want to do this?"</string> <!-- Strings for msg to display to user while bluetooth is turning on --> - <string name="bluetooth_turning_on">"Turning on Bluetooth\u2026"</string> + <string name="bluetooth_turning_on">"Turning Bluetooth on\u2026"</string> <!-- Strings for device profile auto connect setting --> <string name="bluetooth_auto_connect">Auto connect</string> @@ -978,7 +978,7 @@ <!-- Bluetooth Advanced settings. Used as a label under the shortcut icon that goes to Bluetooth advanced settings. [CHAR LIMIT=20]--> <string name="bluetooth_advanced_settings_label">Advanced Bluetooth</string> <!-- Bluetooth settings. Text displayed when Bluetooth is off and device list is empty [CHAR LIMIT=50]--> - <string name="bluetooth_empty_list_bluetooth_off">Turn on bluetooth to see available devices</string> + <string name="bluetooth_empty_list_bluetooth_off">To see devices, turn Bluetooth on.</string> <!-- Bluetooth settings. The title of the screen to pick which profiles to connect to on the device. For example, headphones may have both A2DP and headset, this allows the user to choose which one he wants to connect to. --> @@ -1084,7 +1084,7 @@ <!-- Summary text of the Wi-fi settings screen --> <string name="wifi_settings_summary">Set up & manage wireless access points</string> <!-- Summary text when turning Wi-Fi or bluetooth on --> - <string name="wifi_starting">Turning on Wi-Fi\u2026</string> + <string name="wifi_starting">Turning Wi-Fi on\u2026</string> <!-- Summary text when turning Wi-Fi or bluetooth off --> <string name="wifi_stopping">Turning off Wi-Fi\u2026</string> <!-- Summary text when Wi-Fi or bluetooth has error --> @@ -1124,7 +1124,7 @@ <!-- Menu option to modify a Wi-Fi network configuration --> <string name="wifi_menu_modify">Modify network</string> <!-- Wi-Fi settings. text displayed when WiFi is off and network list is empty [CHAR LIMIT=50]--> - <string name="wifi_empty_list_wifi_off">Turn on wifi to see available networks</string> + <string name="wifi_empty_list_wifi_off">To see available networks, turn Wi-Fi on.</string> <!-- Dialog for Access Points --> <skip /> <!-- Label for network setup [CHAR LIMIT=50] --> |