diff options
| author | PauloftheWest <paulofthewest@google.com> | 2014-11-13 13:57:08 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-13 13:57:09 +0000 |
| commit | 26104298eb53d2dfa693eec32934f9ac0aa3d525 (patch) | |
| tree | 16c08454572cc71e8f8e5ecad7173afb81be46ae /res | |
| parent | c5079a06dc2f57718cd781ae855b687a14cc1c2f (diff) | |
| parent | 76b0801173b6b8493cd9776e44f4effddd5512c2 (diff) | |
| download | packages_apps_Settings-26104298eb53d2dfa693eec32934f9ac0aa3d525.tar.gz packages_apps_Settings-26104298eb53d2dfa693eec32934f9ac0aa3d525.tar.bz2 packages_apps_Settings-26104298eb53d2dfa693eec32934f9ac0aa3d525.zip | |
Merge "Adding Sim Status menu to Settings." into lmp-mr1-dev
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/sim_information.xml | 60 | ||||
| -rw-r--r-- | res/values/strings.xml | 2 | ||||
| -rw-r--r-- | res/xml/device_info_sim_status.xml | 80 |
3 files changed, 142 insertions, 0 deletions
diff --git a/res/layout/sim_information.xml b/res/layout/sim_information.xml new file mode 100644 index 000000000..d2a4acc29 --- /dev/null +++ b/res/layout/sim_information.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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. +--> + +<TabHost xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/tabhost" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:id="@+id/tabs_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scrollbars="none" + android:fillViewport="true"> + + <TabWidget + android:id="@android:id/tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + style="?android:attr/tabWidgetStyle" /> + + </HorizontalScrollView> + + <!-- give an empty content area to make tabhost happy --> + <FrameLayout + android:id="@android:id/tabcontent" + android:layout_width="0dip" + android:layout_height="0dip" /> + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:clipChildren="false" + android:clipToPadding="false" + android:smoothScrollbar="false" /> + + </LinearLayout> + +</TabHost> diff --git a/res/values/strings.xml b/res/values/strings.xml index e7effb686..f6f4d5af0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5546,6 +5546,8 @@ <string name="preferred_network_offload_footer">Disable Network Name Broadcast protects from third parties getting access to your network information.</string> <!-- Preferred Network offload Popup. [CHAR LIMIT=100] --> <string name="preferred_network_offload_popup">Disabling Network Name Broadcast will prevent automatic connection to hidden networks.</string> + <!-- Summary text describing signal strength to the user. [CHAR LIMIT=60] --> + <string name="sim_signal_strength"><xliff:g id="dbm">%1$d</xliff:g> dBm <xliff:g id="asu">%2$d</xliff:g> asu</string> <!-- This is a divider in the SIM cards preferences that is the header of various settings where the user chooses which SIM to use for phone calls, data, and SMS messages [CHAR LIMIT=50] --> <string name="sim_pref_divider">Preferred SIM for</string> diff --git a/res/xml/device_info_sim_status.xml b/res/xml/device_info_sim_status.xml new file mode 100644 index 000000000..9e9444df4 --- /dev/null +++ b/res/xml/device_info_sim_status.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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" + android:title="@string/sim_status_title"> + + <Preference android:key="operator_name" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_operator" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="signal_strength" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_signal_strength" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="network_type" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_network_type" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="latest_area_info" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_latest_area_info" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="service_state" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_service_state" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="roaming_state" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_roaming" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="data_state" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_data_state" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="number" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_number" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="imei" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_imei" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + + <Preference android:key="imei_sv" + style="?android:attr/preferenceInformationStyle" + android:title="@string/status_imei_sv" + android:summary="@string/device_info_not_available" + android:persistent="false" /> + +</PreferenceScreen> |
