only showing the option to choose if there is more than one to choose from. Use the new settingsActivity meta-data to target the appropriate settings activity for the chosen recognizer.
44 lines
1.9 KiB
XML
44 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 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/voice_input_output_settings_title"
|
|
android:key="parent">
|
|
|
|
<PreferenceCategory android:key="voice_input_category"
|
|
android:title="@string/voice_input_category" />
|
|
|
|
<!-- entries, entryValues, and defaultValue will be populated programmatically. -->
|
|
<ListPreference
|
|
android:key="recognizer"
|
|
android:title="@string/recognizer_title"
|
|
android:dialogTitle="@string/recognizer_title" />
|
|
|
|
<!-- An intent for this preference will be populated programmatically. -->
|
|
<PreferenceScreen android:key="recognizer_settings"
|
|
android:title="@string/recognizer_settings_title" />
|
|
|
|
<PreferenceCategory android:key="voice_output_category"
|
|
android:title="@string/voice_output_category" />
|
|
|
|
<PreferenceScreen android:key="tts_settings"
|
|
android:title="@string/tts_settings_title">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.TextToSpeechSettings" />
|
|
</PreferenceScreen>
|
|
|
|
</PreferenceScreen> |