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_caption_appearance_title"> 22 23 <com.android.settingslib.widget.LayoutPreference 24 android:key="caption_preview" 25 android:title="@string/summary_placeholder" 26 android:layout="@layout/captioning_preview" 27 android:selectable="false" 28 settings:searchable="false"/> 29 30 <ListPreference 31 android:entries="@array/captioning_font_size_selector_titles" 32 android:entryValues="@array/captioning_font_size_selector_values" 33 android:key="captioning_font_size" 34 android:summary="%s" 35 android:title="@string/captioning_text_size"/> 36 37 <com.android.settings.accessibility.PresetPreference 38 android:key="captioning_preset" 39 android:title="@string/captioning_preset"/> 40 41 <PreferenceCategory 42 android:key="custom" 43 android:title="@string/captioning_custom_options_title"> 44 45 <ListPreference 46 android:entries="@array/captioning_typeface_selector_titles" 47 android:entryValues="@array/captioning_typeface_selector_values" 48 android:key="captioning_typeface" 49 android:summary="%s" 50 android:title="@string/captioning_typeface"/> 51 52 <com.android.settings.accessibility.ColorPreference 53 android:key="captioning_foreground_color" 54 android:title="@string/captioning_foreground_color"/> 55 56 <com.android.settings.accessibility.ColorPreference 57 android:dependency="captioning_foreground_color" 58 android:key="captioning_foreground_opacity" 59 android:title="@string/captioning_foreground_opacity"/> 60 61 <com.android.settings.accessibility.EdgeTypePreference 62 android:key="captioning_edge_type" 63 android:title="@string/captioning_edge_type"/> 64 65 <com.android.settings.accessibility.ColorPreference 66 android:dependency="captioning_edge_type" 67 android:key="captioning_edge_color" 68 android:title="@string/captioning_edge_color"/> 69 70 <com.android.settings.accessibility.ColorPreference 71 android:key="captioning_background_color" 72 android:title="@string/captioning_background_color"/> 73 74 <com.android.settings.accessibility.ColorPreference 75 android:dependency="captioning_background_color" 76 android:key="captioning_background_opacity" 77 android:title="@string/captioning_background_opacity"/> 78 79 <com.android.settings.accessibility.ColorPreference 80 android:key="captioning_window_color" 81 android:title="@string/captioning_window_color"/> 82 83 <com.android.settings.accessibility.ColorPreference 84 android:dependency="captioning_window_color" 85 android:key="captioning_window_opacity" 86 android:title="@string/captioning_window_opacity"/> 87 88 </PreferenceCategory> 89 90 <com.android.settings.accessibility.AccessibilityFooterPreference 91 android:key="captioning_appearance_footer" 92 android:title="@string/accessibility_caption_preference_summary" 93 android:persistent="false" 94 android:selectable="false" 95 settings:searchable="false" 96 settings:controller="com.android.settings.accessibility.CaptionFooterPreferenceController"/> 97</PreferenceScreen> 98