diff options
| author | Lifu Tang <lifu@google.com> | 2013-07-30 18:34:35 -0700 |
|---|---|---|
| committer | Lifu Tang <lifu@google.com> | 2013-07-31 11:07:27 -0700 |
| commit | fc86f69d3b7675099de992750bfd10ed07a13ed0 (patch) | |
| tree | dc13e3f5c32af4d4638197ab9aa0df86d5a95283 /res | |
| parent | 040ce605826af509f6391e3536204c07476dc28a (diff) | |
| download | packages_apps_Settings-fc86f69d3b7675099de992750bfd10ed07a13ed0.tar.gz packages_apps_Settings-fc86f69d3b7675099de992750bfd10ed07a13ed0.tar.bz2 packages_apps_Settings-fc86f69d3b7675099de992750bfd10ed07a13ed0.zip | |
Implemented RadioButtonPreference
Change-Id: I047b6a95f3001b60e7500f85c25d507e1ca1ad0f
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/preference_widget_radiobutton.xml | 25 | ||||
| -rw-r--r-- | res/xml/location_settings.xml | 4 |
2 files changed, 27 insertions, 2 deletions
diff --git a/res/layout/preference_widget_radiobutton.xml b/res/layout/preference_widget_radiobutton.xml new file mode 100644 index 000000000..7f4ee958e --- /dev/null +++ b/res/layout/preference_widget_radiobutton.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> + +<!-- Layout used by CheckBoxPreference for the checkbox style. This is inflated + inside android.R.layout.preference. --> +<RadioButton xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+android:id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:focusable="false" + android:clickable="false" /> diff --git a/res/xml/location_settings.xml b/res/xml/location_settings.xml index 246a383f4..9af36dadb 100644 --- a/res/xml/location_settings.xml +++ b/res/xml/location_settings.xml @@ -27,14 +27,14 @@ android:key="location_sources" android:title="@string/location_sources_heading" /> - <CheckBoxPreference + <com.android.settings.location.RadioButtonPreference android:key="location_gps" android:title="@string/location_gps" android:summary="@string/location_street_level" android:dependency="location_toggle" android:persistent="false" /> - <com.android.settings.location.WrappingCheckBoxPreference + <com.android.settings.location.RadioButtonPreference android:key="location_network" android:title="@string/location_network_based" android:summary="@string/location_neighborhood_level" |
