1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2019 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 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:settings="http://schemas.android.com/apk/res-auto" 21 android:title="@string/captioning_appearance_title"> 22 23 <com.android.settingslib.widget.LayoutPreference 24 android:key="captioning_preview" 25 android:title="@string/summary_placeholder" 26 android:layout="@layout/captioning_preview" 27 android:selectable="false" 28 settings:searchable="false" 29 settings:controller="com.android.settings.accessibility.CaptioningPreviewPreferenceController"/> 30 31 <ListPreference 32 android:entries="@array/captioning_font_size_selector_titles" 33 android:entryValues="@array/captioning_font_size_selector_values" 34 android:key="captioning_font_size" 35 android:summary="%s" 36 android:title="@string/captioning_text_size" 37 settings:controller="com.android.settings.accessibility.CaptioningFontSizeController"/> 38 39 <com.android.settings.accessibility.PresetPreference 40 android:key="captioning_preset" 41 android:title="@string/captioning_preset" 42 settings:controller="com.android.settings.accessibility.CaptioningPresetController"/> 43 44 <PreferenceCategory 45 android:key="custom" 46 android:title="@string/captioning_custom_options_title" 47 settings:controller="com.android.settings.accessibility.CaptioningCustomController"> 48 49 <ListPreference 50 android:entries="@array/captioning_typeface_selector_titles" 51 android:entryValues="@array/captioning_typeface_selector_values" 52 android:key="captioning_typeface" 53 android:summary="%s" 54 android:title="@string/captioning_typeface" 55 settings:controller="com.android.settings.accessibility.CaptioningTypefaceController"/> 56 57 <com.android.settings.accessibility.ColorPreference 58 android:key="captioning_foreground_color" 59 android:title="@string/captioning_foreground_color" 60 settings:controller="com.android.settings.accessibility.CaptioningForegroundColorController"/> 61 62 <com.android.settings.accessibility.ColorPreference 63 android:dependency="captioning_foreground_color" 64 android:key="captioning_foreground_opacity" 65 android:title="@string/captioning_foreground_opacity" 66 settings:controller="com.android.settings.accessibility.CaptioningForegroundOpacityController"/> 67 68 <com.android.settings.accessibility.EdgeTypePreference 69 android:key="captioning_edge_type" 70 android:title="@string/captioning_edge_type" 71 settings:controller="com.android.settings.accessibility.CaptioningEdgeTypeController"/> 72 73 <com.android.settings.accessibility.ColorPreference 74 android:dependency="captioning_edge_type" 75 android:key="captioning_edge_color" 76 android:title="@string/captioning_edge_color" 77 settings:controller="com.android.settings.accessibility.CaptioningEdgeColorController"/> 78 79 <com.android.settings.accessibility.ColorPreference 80 android:key="captioning_background_color" 81 android:title="@string/captioning_background_color" 82 settings:controller="com.android.settings.accessibility.CaptioningBackgroundColorController"/> 83 84 <com.android.settings.accessibility.ColorPreference 85 android:dependency="captioning_background_color" 86 android:key="captioning_background_opacity" 87 android:title="@string/captioning_background_opacity" 88 settings:controller="com.android.settings.accessibility.CaptioningBackgroundOpacityController"/> 89 90 <com.android.settings.accessibility.ColorPreference 91 android:key="captioning_window_color" 92 android:title="@string/captioning_window_color" 93 settings:controller="com.android.settings.accessibility.CaptioningWindowColorController"/> 94 95 <com.android.settings.accessibility.ColorPreference 96 android:dependency="captioning_window_color" 97 android:key="captioning_window_opacity" 98 android:title="@string/captioning_window_opacity" 99 settings:controller="com.android.settings.accessibility.CaptioningWindowOpacityController"/> 100 </PreferenceCategory> 101 102 <com.android.settings.accessibility.AccessibilityFooterPreference 103 android:key="captioning_appearance_footer" 104 android:title="@string/accessibility_captioning_preference_summary" 105 android:selectable="false" 106 settings:searchable="false" 107 settings:controller="com.android.settings.accessibility.CaptioningFooterPreferenceController"/> 108</PreferenceScreen> 109