diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_sim_sd.png | bin | 0 -> 836 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_sim_sd.png | bin | 0 -> 700 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_sim_sd.png | bin | 0 -> 912 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_sim_sd.png | bin | 0 -> 1144 bytes | |||
-rw-r--r-- | res/drawable-xxxhdpi/ic_sim_sd.png | bin | 0 -> 1541 bytes | |||
-rw-r--r-- | res/layout/multi_sim_dialog.xml | 114 | ||||
-rwxr-xr-x | res/values/dimens.xml | 9 | ||||
-rw-r--r-- | res/values/strings.xml | 4 | ||||
-rw-r--r-- | res/xml/dashboard_categories.xml | 8 | ||||
-rw-r--r-- | res/xml/sim_settings.xml | 44 |
10 files changed, 179 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_sim_sd.png b/res/drawable-hdpi/ic_sim_sd.png Binary files differnew file mode 100644 index 0000000..50a16db --- /dev/null +++ b/res/drawable-hdpi/ic_sim_sd.png diff --git a/res/drawable-mdpi/ic_sim_sd.png b/res/drawable-mdpi/ic_sim_sd.png Binary files differnew file mode 100644 index 0000000..1926608 --- /dev/null +++ b/res/drawable-mdpi/ic_sim_sd.png diff --git a/res/drawable-xhdpi/ic_sim_sd.png b/res/drawable-xhdpi/ic_sim_sd.png Binary files differnew file mode 100644 index 0000000..1a0842b --- /dev/null +++ b/res/drawable-xhdpi/ic_sim_sd.png diff --git a/res/drawable-xxhdpi/ic_sim_sd.png b/res/drawable-xxhdpi/ic_sim_sd.png Binary files differnew file mode 100644 index 0000000..e05e7ad --- /dev/null +++ b/res/drawable-xxhdpi/ic_sim_sd.png diff --git a/res/drawable-xxxhdpi/ic_sim_sd.png b/res/drawable-xxxhdpi/ic_sim_sd.png Binary files differnew file mode 100644 index 0000000..b12e34e --- /dev/null +++ b/res/drawable-xxxhdpi/ic_sim_sd.png diff --git a/res/layout/multi_sim_dialog.xml b/res/layout/multi_sim_dialog.xml new file mode 100644 index 0000000..070b64e --- /dev/null +++ b/res/layout/multi_sim_dialog.xml @@ -0,0 +1,114 @@ +<?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. +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="@dimen/sim_dialog_padding" + android:orientation="vertical"> + + <LinearLayout android:id="@+id/type" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/sim_dialog_margin_top" + android:text="@string/sim_editor_name" + style="?android:attr/textAppearanceMedium" /> + + <EditText android:id="@+id/sim_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:paddingBottom="@dimen/sim_dialog_margin_bottom" + android:hint="@string/wifi_ssid_hint" + android:inputType="textNoSuggestions" + android:maxLength="@integer/sim_name_length" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/sim_dialog_margin_top" + android:text="@string/sim_editor_carrier" /> + + <TextView android:id="@+id/carrier" + android:textColor="@android:color/black" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="@dimen/sim_dialog_margin_bottom" + android:singleLine="true" + style="?android:attr/textAppearanceMedium" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/sim_dialog_margin_top" + android:text="@string/sim_editor_number" /> + + <TextView android:id="@+id/number" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="@dimen/sim_dialog_margin_bottom" + android:singleLine="true" + android:textColor="@android:color/black" + style="?android:attr/textAppearanceMedium" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/sim_dialog_margin_top" + android:text="@string/sim_editor_num_format" /> + + <Spinner android:id="@+id/display_numbers" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:entries="@array/sim_card_data_range" + android:paddingBottom="@dimen/sim_dialog_margin_bottom" + android:prompt="@string/sim_editor_num_format" /> + + </LinearLayout> + + </LinearLayout> + +</ScrollView> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index eda676f..4d06c1c 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -192,4 +192,13 @@ <!-- Screen pinning textview paddings --> <dimen name="screen_pinning_textview_padding">40dp</dimen> + <!-- SIM Dialog Margin top --> + <dimen name="sim_dialog_margin_top">8dip</dimen> + <!-- SIM Dialog Margin bottom --> + <dimen name="sim_dialog_margin_bottom">16dip</dimen> + <!-- SIM Dialog padding --> + <dimen name="sim_dialog_padding">8dip</dimen> + <!-- Sim Card Name length --> + <integer name="sim_name_length">32</integer> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 76fdafc..1298289 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5422,6 +5422,8 @@ <string name="sim_setup_wizard_title">SIM cards</string> <!-- Title for SIM settings title settings during Setup Wizard. [CHAR LIMIT=40] --> <string name="sim_settings_title">SIM cards</string> + <!-- Summary for SIM settings title settings during Setup Wizard. [CHAR LIMIT=40] --> + <string name="sim_settings_summary"><xliff:g id="sim_name">%1$s</xliff:g> - <xliff:g id="sim_number">%2$s</xliff:g></string> <!-- Message that SIM cards have changed. [CHAR LIMIT=40] --> <string name="sim_cards_changed_message">SIM cards have changed</string> <!-- Message smmary that SIM cards have changed. [CHAR LIMIT=60] --> @@ -5436,6 +5438,8 @@ <string name="sim_select_card">Select a SIM card</string> <!-- Label for a numbered SIM card. [CHAR LIMIT=40] --> <string name="sim_card_number_title">SIM <xliff:g id="card_number">%1$d</xliff:g></string> + <!-- Name label of Sim card that is empty. [CHAR LIMIT=40] --> + <string name="sim_slot_empty">SIM empty</string> <!-- Name label of Sim Editor. [CHAR LIMIT=40] --> <string name="sim_editor_name">SIM name</string> <!-- Title label of Sim Editor. [CHAR LIMIT=40] --> diff --git a/res/xml/dashboard_categories.xml b/res/xml/dashboard_categories.xml index 53a6d5a..01a4f83 100644 --- a/res/xml/dashboard_categories.xml +++ b/res/xml/dashboard_categories.xml @@ -38,6 +38,14 @@ android:icon="@drawable/ic_settings_bluetooth2" /> + <!-- SIM Cards --> + <dashboard-tile + android:id="@+id/sim_settings" + android:title="@string/sim_settings_title" + android:fragment="com.android.settings.sim.SimSettings" + android:icon="@drawable/ic_sim_sd" + /> + <!-- Data Usage --> <dashboard-tile android:id="@+id/data_usage_settings" diff --git a/res/xml/sim_settings.xml b/res/xml/sim_settings.xml new file mode 100644 index 0000000..105be2e --- /dev/null +++ b/res/xml/sim_settings.xml @@ -0,0 +1,44 @@ +<?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_settings_title"> + + <PreferenceCategory + android:key="sim_cards" + android:title="@string/sim_settings_title" /> + + <PreferenceCategory + android:key="sim_activities" + android:title="@string/sim_pref_divider"> + + <com.android.settings.notification.DropDownPreference + android:key="sim_cellular_data" + android:title="@string/cellular_data_title" + android:dialogTitle="@string/cellular_data_title" /> + + <com.android.settings.notification.DropDownPreference + android:key="sim_calls" + android:title="@string/calls_title" /> + + <com.android.settings.notification.DropDownPreference + android:key="sim_sms" + android:title="@string/sms_messages_title" + android:dialogTitle="@string/sms_messages_title" /> + + </PreferenceCategory> + +</PreferenceScreen> |