summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/language_settings.xml2
-rw-r--r--res/xml/tts_engine_settings.xml34
-rw-r--r--res/xml/tts_settings.xml67
3 files changed, 54 insertions, 49 deletions
diff --git a/res/xml/language_settings.xml b/res/xml/language_settings.xml
index f696187..1598939 100644
--- a/res/xml/language_settings.xml
+++ b/res/xml/language_settings.xml
@@ -83,7 +83,7 @@
android:title="@string/voice_output_category" >
<PreferenceScreen android:key="tts_settings"
- android:fragment="com.android.settings.TextToSpeechSettings"
+ android:fragment="com.android.settings.tts.TextToSpeechSettings"
android:title="@string/tts_settings_title" />
</PreferenceCategory>
diff --git a/res/xml/tts_engine_settings.xml b/res/xml/tts_engine_settings.xml
new file mode 100644
index 0000000..03414e8
--- /dev/null
+++ b/res/xml/tts_engine_settings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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="">
+ <ListPreference
+ android:key="tts_default_lang"
+ android:title="@string/tts_default_lang_title"
+ android:summary="@string/tts_default_lang_summary"
+ android:persistent="false" />
+
+ <Preference
+ android:key="tts_engine_settings"
+ android:persistent="false"
+ android:title="@string/tts_engine_settings_title" />
+
+ <Preference
+ android:key="tts_install_data"
+ android:persistent="false"
+ android:title="@string/tts_install_data_title"
+ android:summary="@string/tts_install_data_summary" />
+</PreferenceScreen>
diff --git a/res/xml/tts_settings.xml b/res/xml/tts_settings.xml
index ecccc10..2b145d1 100644
--- a/res/xml/tts_settings.xml
+++ b/res/xml/tts_settings.xml
@@ -17,53 +17,24 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/tts_settings_title">
- <Preference
- android:key="tts_play_example"
+ <!-- The contents of this category are filled in by the Java code
+ based on the list of available engines. -->
+ <PreferenceCategory android:key="tts_engine_preference_section"
+ android:title="@string/tts_engine_preference_section_title" />
+
+ <PreferenceCategory android:key="tts_general_section"
+ android:title="@string/tts_general_section_title">
+ <ListPreference
+ android:key="tts_default_rate"
+ android:title="@string/tts_default_rate_title"
+ android:summary="@string/tts_default_rate_summary"
android:persistent="false"
- android:title="@string/tts_play_example_title"
- android:summary="@string/tts_play_example_summary" />
-
- <PreferenceCategory
- android:title="@string/tts_default_settings_section">
- <ListPreference
- android:key="tts_default_synth"
- android:title="@string/tts_default_synth_title"
- android:summary="@string/tts_default_synth_summary"
- android:persistent="false"
- android:entries="@array/tts_engine_entries"
- android:entryValues="@array/tts_engine_values" />
-
- <ListPreference
- android:key="tts_default_rate"
- android:title="@string/tts_default_rate_title"
- android:summary="@string/tts_default_rate_summary"
- android:persistent="false"
- android:entries="@array/tts_rate_entries"
- android:entryValues="@array/tts_rate_values" />
-
- <ListPreference
- android:key="tts_default_lang"
- android:title="@string/tts_default_lang_title"
- android:summary="@string/tts_default_lang_summary"
- android:persistent="false"
- android:entries="@array/tts_lang_entries"
- android:entryValues="@array/tts_lang_values" />
-
- </PreferenceCategory>
-
- <PreferenceCategory android:key="tts_engine_settings_section"
- android:title="@string/tts_engine_settings_section">
- <Preference
- android:key="tts_engine_settings"
- android:persistent="false"
- android:title="@string/tts_engine_settings_title" />
-
- <Preference
- android:key="tts_install_data"
- android:persistent="false"
- android:title="@string/tts_install_data_title"
- android:summary="@string/tts_install_data_summary" />
- </PreferenceCategory>
-
-
+ android:entries="@array/tts_rate_entries"
+ android:entryValues="@array/tts_rate_values" />
+ </PreferenceCategory>
+
+ <Preference android:key="tts_play_example"
+ android:persistent="false"
+ android:title="@string/tts_play_example_title"
+ android:summary="@string/tts_play_example_summary" />
</PreferenceScreen>