1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2013 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:settings="http://schemas.android.com/apk/res-auto" 20 android:fragment="com.android.settings.accessibility.CaptionPropertiesFragment" 21 android:key="captioning_preference_screen" 22 android:title="@string/accessibility_captioning_title" > 23 24 <com.android.settingslib.widget.LayoutPreference 25 android:key="caption_preview" 26 android:title="@string/summary_placeholder" 27 android:layout="@layout/captioning_preview" 28 settings:searchable="false"/> 29 30 <PreferenceCategory 31 android:key="standard" 32 android:title="@string/captioning_standard_options_title" > 33 <SwitchPreference 34 android:key="captioning_preference_switch" 35 android:title="@string/accessibility_caption_master_switch_title" /> 36 37 <ListPreference 38 android:entries="@array/captioning_font_size_selector_titles" 39 android:entryValues="@array/captioning_font_size_selector_values" 40 android:key="captioning_font_size" 41 android:summary="%s" 42 android:title="@string/captioning_text_size" /> 43 44 <com.android.settings.accessibility.PresetPreference 45 android:key="captioning_preset" 46 android:title="@string/captioning_preset" /> 47 48 <com.android.settings.accessibility.LocalePreference 49 android:key="captioning_locale" 50 android:summary="%s" 51 android:title="@string/captioning_locale" /> 52 </PreferenceCategory> 53 <PreferenceCategory 54 android:key="custom" 55 android:title="@string/captioning_custom_options_title" > 56 <ListPreference 57 android:entries="@array/captioning_typeface_selector_titles" 58 android:entryValues="@array/captioning_typeface_selector_values" 59 android:key="captioning_typeface" 60 android:summary="%s" 61 android:title="@string/captioning_typeface" /> 62 63 <com.android.settings.accessibility.ColorPreference 64 android:key="captioning_foreground_color" 65 android:title="@string/captioning_foreground_color" /> 66 <com.android.settings.accessibility.ColorPreference 67 android:dependency="captioning_foreground_color" 68 android:key="captioning_foreground_opacity" 69 android:title="@string/captioning_foreground_opacity" /> 70 71 <com.android.settings.accessibility.EdgeTypePreference 72 android:key="captioning_edge_type" 73 android:title="@string/captioning_edge_type" /> 74 75 <com.android.settings.accessibility.ColorPreference 76 android:dependency="captioning_edge_type" 77 android:key="captioning_edge_color" 78 android:title="@string/captioning_edge_color" /> 79 <com.android.settings.accessibility.ColorPreference 80 android:key="captioning_background_color" 81 android:title="@string/captioning_background_color" /> 82 <com.android.settings.accessibility.ColorPreference 83 android:dependency="captioning_background_color" 84 android:key="captioning_background_opacity" 85 android:title="@string/captioning_background_opacity" /> 86 <com.android.settings.accessibility.ColorPreference 87 android:key="captioning_window_color" 88 android:title="@string/captioning_window_color" /> 89 <com.android.settings.accessibility.ColorPreference 90 android:dependency="captioning_window_color" 91 android:key="captioning_window_opacity" 92 android:title="@string/captioning_window_opacity" /> 93 </PreferenceCategory> 94 95 <com.android.settingslib.widget.FooterPreference 96 android:title="@string/accessibility_caption_preference_summary" 97 android:selectable="false" /> 98 99</PreferenceScreen> 100