Files
packages_apps_Settings/res/xml/settings.xml
Amith Yamasani d79934731c Refactor settings top level activities to use fragments.
Added a base class SettingsPreferenceFragment from which the settings activities should
be derived so that they can behave like fragments. It contains some commonly called
utility methods and dialog conversion to DialogFragment.

Some of the top-level activities can be launched directly without the left pane.
Settings.java acts as a proxy activity that contains just that settings fragment without
the left pane.

There are still a lot of second and third level activities that need to be fragmentized.
This is just the first pass to test the 2-pane layout.
2010-08-18 22:59:33 -07:00

184 lines
7.4 KiB
XML

<?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"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/settings_label"
android:key="parent">
<!-- Operator hook -->
<com.android.settings.IconPreferenceScreen
android:key="operator_settings">
<intent android:action="com.android.settings.OPERATOR_APPLICATION_SETTING" />
</com.android.settings.IconPreferenceScreen>
<!-- Manufacturer hook -->
<com.android.settings.IconPreferenceScreen
android:key="manufacturer_settings">
<intent android:action="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
</com.android.settings.IconPreferenceScreen>
<!-- Wireless controls -->
<com.android.settings.IconPreferenceScreen
android:title="@string/radio_controls_title"
android:fragment="com.android.settings.WirelessSettings"
settings:icon="@drawable/ic_settings_wireless">
</com.android.settings.IconPreferenceScreen>
<!-- Call settings - this is in the phone process -->
<com.android.settings.IconPreferenceScreen
android:key="call_settings"
settings:icon="@drawable/ic_settings_call"
android:title="@string/call_settings_title">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.android.phone"
android:targetClass="com.android.phone.CallFeaturesSetting" />
</com.android.settings.IconPreferenceScreen>
<!-- Sound -->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_sound"
android:fragment="com.android.settings.SoundSettings"
android:title="@string/sound_settings_title">
</com.android.settings.IconPreferenceScreen>
<!-- Display -->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_display"
android:fragment="com.android.settings.DisplaySettings"
android:title="@string/display_settings_title">
</com.android.settings.IconPreferenceScreen>
<!-- Security & Location -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.SecuritySettings"
settings:icon="@drawable/ic_settings_security"
android:title="@string/security_settings_title"
android:key="security_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Application Settings -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.ApplicationSettings"
settings:icon="@drawable/ic_settings_applications"
android:title="@string/applications_settings"
android:key="applications_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Data Sync. The settings activity will ensure this is resolved to an
activity on the system image, otherwise it will remove this
preference. -->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_sync"
android:title="@string/sync_settings"
android:key="sync_settings">
<intent android:action="android.settings.SYNC_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<!-- Privacy -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.PrivacySettings"
settings:icon="@drawable/ic_settings_privacy"
android:title="@string/privacy_settings"
android:key="privacy_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Storage -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.deviceinfo.Memory"
settings:icon="@drawable/ic_settings_storage"
android:title="@string/storage_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Search.
The settings activity will ensure that this is resolved to an
activity on the system image, otherwise it will remove this
preference.
The intent action is the same as
android.app.SearchManager.INTENT_ACTION_SEARCH_SETTINGS.
-->
<com.android.settings.IconPreferenceScreen
settings:icon="@drawable/ic_settings_search"
android:title="@string/search_settings"
android:key="search_settings">
<intent android:action="android.search.action.SEARCH_SETTINGS" />
</com.android.settings.IconPreferenceScreen>
<!-- Language -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.LanguageSettings"
settings:icon="@drawable/ic_settings_language"
android:title="@string/language_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Voice input & output -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.VoiceInputOutputSettings"
settings:icon="@drawable/ic_settings_speech"
android:title="@string/voice_input_output_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Accessibility feedback -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.AccessibilitySettings"
settings:icon="@drawable/ic_settings_accessibility"
android:title="@string/accessibility_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Dock -->
<com.android.settings.IconPreferenceScreen
android:key="dock_settings"
android:fragment="com.android.settings.DockSettings"
settings:icon="@drawable/ic_settings_dock"
android:title="@string/dock_settings">
</com.android.settings.IconPreferenceScreen>
<!-- Date & Time -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.DateTimeSettings"
settings:icon="@drawable/ic_settings_date_time"
android:title="@string/date_and_time_settings_title">
</com.android.settings.IconPreferenceScreen>
<!-- About Device -->
<com.android.settings.IconPreferenceScreen
android:fragment="com.android.settings.DeviceInfoSettings"
settings:icon="@drawable/ic_settings_about"
android:title="@string/about_settings">
</com.android.settings.IconPreferenceScreen>
</PreferenceScreen>