Xml文件  |  55行  |  2.36 KB

<?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.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <com.android.phone.CdmaSystemSelectListPreference
        android:key="cdma_system_select_key"
        android:title="@string/cdma_system_select_title"
        android:summary="@string/cdma_system_select_summary"
        android:entries="@array/cdma_system_select_choices"
        android:entryValues="@array/cdma_system_select_values"
        android:dialogTitle="@string/cdma_system_select_dialogtitle" />

    <com.android.phone.CdmaSubscriptionListPreference
        android:key="cdma_subscription_key"
        android:title="@string/cdma_subscription_title"
        android:summary="@string/cdma_subscription_summary"
        android:entries="@array/cdma_subscription_choices"
        android:entryValues="@array/cdma_subscription_values"
        android:dialogTitle="@string/cdma_subscription_dialogtitle" />

    <!--We want separate APN setting from reset of settings because-->
    <!--we want user to change it with caution.-->
    <PreferenceCategory
        android:key="category_cdma_apn_key">
        <!-- The launching Intent will be defined thru code as we need to pass some Extra -->
        <com.android.phone.RestrictedPreference
            android:key="button_cdma_apn_key"
            android:title="@string/apn_settings"
            android:persistent="false"/>
    </PreferenceCategory>

    <Preference
        android:key="carrier_settings_key"
        android:title="@string/carrier_settings_title">
        <intent android:action="android.intent.action.MAIN"
                android:targetPackage="@string/carrier_settings"
                android:targetClass="@string/carrier_settings_menu" />
    </Preference>

</PreferenceScreen>