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    <com.android.tv.settings.widget.SwitchWithSoundPreference
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        <ListPreference
30            android:key="captions_language"
31            android:title="@string/captions_language"
32            android:summary="%s" />
33        <ListPreference
34            android:key="captions_text_size"
35            android:title="@string/captions_textsize"
36            android:summary="%s"
37            android:entries="@array/captioning_font_size_selector_titles"
38            android:entryValues="@array/captioning_font_size_selector_values" />
39    </PreferenceCategory>
40    <PreferenceCategory
41        android:key="captions_style"
42        android:title="@string/captions_captionstyle">
43        <com.android.tv.settings.RadioPreference
44            android:key="captions_style_0"
45            android:persistent="true"
46            android:title="@string/captions_style_0"
47            app:radioGroup="captions_style" />
48        <com.android.tv.settings.RadioPreference
49            android:key="captions_style_1"
50            android:persistent="true"
51            android:title="@string/captions_style_1"
52            app:radioGroup="captions_style" />
53        <com.android.tv.settings.RadioPreference
54            android:key="captions_style_2"
55            android:persistent="true"
56            android:title="@string/captions_style_2"
57            app:radioGroup="captions_style" />
58        <com.android.tv.settings.RadioPreference
59            android:key="captions_style_3"
60            android:persistent="true"
61            android:title="@string/captions_style_3"
62            app:radioGroup="captions_style" />
63        <com.android.tv.settings.RadioPreference
64            android:key="captions_style_custom"
65            android:persistent="true"
66            android:title="@string/captions_style_custom"
67            app:radioGroup="captions_style"
68            android:fragment="com.android.tv.settings.system.development.CaptionCustomFragment" />
69    </PreferenceCategory>
70
71</PreferenceScreen>
72