1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2016 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:app="http://schemas.android.com/apk/res-auto" 20 android:title="@string/accessibility_captions" > 21 <SwitchPreference 22 android:key="captions_display" 23 android:persistent="true" 24 android:title="@string/captions_display" /> 25 26 <PreferenceCategory 27 android:key="display_options" 28 android:title="@string/display_options" 29 android:layout="@layout/preference_category_compact_layout"> 30 <ListPreference 31 android:key="captions_language" 32 android:title="@string/captions_language" 33 android:summary="%s" /> 34 <ListPreference 35 android:key="captions_text_size" 36 android:title="@string/captions_textsize" 37 android:summary="%s" 38 android:entries="@array/captioning_font_size_selector_titles" 39 android:entryValues="@array/captioning_font_size_selector_values" /> 40 </PreferenceCategory> 41 <PreferenceCategory 42 android:key="captions_style" 43 android:title="@string/captions_captionstyle" 44 android:layout="@layout/preference_category_compact_layout"> 45 <com.android.tv.settings.RadioPreference 46 android:key="captions_style_0" 47 android:persistent="true" 48 android:title="@string/captions_style_0" 49 app:radioGroup="captions_style" /> 50 <com.android.tv.settings.RadioPreference 51 android:key="captions_style_1" 52 android:persistent="true" 53 android:title="@string/captions_style_1" 54 app:radioGroup="captions_style" /> 55 <com.android.tv.settings.RadioPreference 56 android:key="captions_style_2" 57 android:persistent="true" 58 android:title="@string/captions_style_2" 59 app:radioGroup="captions_style" /> 60 <com.android.tv.settings.RadioPreference 61 android:key="captions_style_3" 62 android:persistent="true" 63 android:title="@string/captions_style_3" 64 app:radioGroup="captions_style" /> 65 <com.android.tv.settings.RadioPreference 66 android:key="captions_style_custom" 67 android:persistent="true" 68 android:title="@string/captions_style_custom" 69 app:radioGroup="captions_style" 70 android:fragment="com.android.tv.settings.system.development.CaptionCustomFragment" /> 71 </PreferenceCategory> 72 73</PreferenceScreen> 74