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 xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:settings="http://schemas.android.com/apk/res-auto"
20    android:fragment="com.android.car.developeroptions.accessibility.CaptionPropertiesFragment"
21    android:key="captioning_preference_screen"
22    android:title="@string/accessibility_captioning_title" >
23
24    <PreferenceCategory
25        android:key="standard"
26        android:title="@string/captioning_standard_options_title" >
27        <com.android.car.developeroptions.accessibility.LocalePreference
28            android:key="captioning_locale"
29            android:summary="%s"
30            android:title="@string/captioning_locale" />
31
32        <ListPreference
33            android:entries="@array/captioning_font_size_selector_titles"
34            android:entryValues="@array/captioning_font_size_selector_values"
35            android:key="captioning_font_size"
36            android:summary="%s"
37            android:title="@string/captioning_text_size" />
38
39        <com.android.car.developeroptions.accessibility.PresetPreference
40            android:key="captioning_preset"
41            android:title="@string/captioning_preset" />
42    </PreferenceCategory>
43    <PreferenceCategory
44        android:key="custom"
45        android:title="@string/captioning_custom_options_title" >
46        <ListPreference
47            android:entries="@array/captioning_typeface_selector_titles"
48            android:entryValues="@array/captioning_typeface_selector_values"
49            android:key="captioning_typeface"
50            android:summary="%s"
51            android:title="@string/captioning_typeface" />
52
53        <com.android.car.developeroptions.accessibility.ColorPreference
54            android:key="captioning_foreground_color"
55            android:title="@string/captioning_foreground_color" />
56        <com.android.car.developeroptions.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.car.developeroptions.accessibility.EdgeTypePreference
62            android:key="captioning_edge_type"
63            android:title="@string/captioning_edge_type" />
64
65        <com.android.car.developeroptions.accessibility.ColorPreference
66            android:dependency="captioning_edge_type"
67            android:key="captioning_edge_color"
68            android:title="@string/captioning_edge_color" />
69        <com.android.car.developeroptions.accessibility.ColorPreference
70            android:key="captioning_background_color"
71            android:title="@string/captioning_background_color" />
72        <com.android.car.developeroptions.accessibility.ColorPreference
73            android:dependency="captioning_background_color"
74            android:key="captioning_background_opacity"
75            android:title="@string/captioning_background_opacity" />
76        <com.android.car.developeroptions.accessibility.ColorPreference
77            android:key="captioning_window_color"
78            android:title="@string/captioning_window_color" />
79        <com.android.car.developeroptions.accessibility.ColorPreference
80            android:dependency="captioning_window_color"
81            android:key="captioning_window_opacity"
82            android:title="@string/captioning_window_opacity" />
83    </PreferenceCategory>
84
85</PreferenceScreen>
86