Home | History | Annotate | Download | only in xml
      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     android:title="@string/captions_customoptions">
     20     <ListPreference
     21         android:key="font_family"
     22         android:persistent="true"
     23         android:title="@string/captions_fontfamily"
     24         android:summary="%s"
     25         android:entries="@array/captioning_typeface_selector_titles"
     26         android:entryValues="@array/captioning_typeface_selector_values" />
     27     <!-- Entries set in code -->
     28     <ListPreference
     29         android:key="text_color"
     30         android:persistent="true"
     31         android:title="@string/captions_textcolor"
     32         android:summary="%s" />
     33     <ListPreference
     34         android:key="text_opacity"
     35         android:persistent="true"
     36         android:title="@string/captions_textopacity"
     37         android:summary="%s"
     38         android:entries="@array/captioning_opacity_selector_titles"
     39         android:entryValues="@array/captioning_opacity_selector_values" />
     40     <ListPreference
     41         android:key="edge_type"
     42         android:persistent="true"
     43         android:title="@string/captions_edgetype"
     44         android:summary="%s"
     45         android:entries="@array/captioning_edge_type_selector_titles"
     46         android:entryValues="@array/captioning_edge_type_selector_values" />
     47     <!-- Entries set in code -->
     48     <ListPreference
     49         android:key="edge_color"
     50         android:persistent="true"
     51         android:title="@string/captions_edgecolor"
     52         android:summary="%s" />
     53     <!-- Entries set in code -->
     54     <SwitchPreference
     55         android:key="background_show"
     56         android:persistent="true"
     57         android:title="@string/captions_backgroundshow" />
     58     <ListPreference
     59         android:key="background_color"
     60         android:persistent="true"
     61         android:dependency="background_show"
     62         android:title="@string/captions_backgroundcolor"
     63         android:summary="%s" />
     64     <ListPreference
     65         android:key="background_opacity"
     66         android:persistent="true"
     67         android:dependency="background_show"
     68         android:title="@string/captions_backgroundopacity"
     69         android:summary="%s"
     70         android:entries="@array/captioning_opacity_selector_titles"
     71         android:entryValues="@array/captioning_opacity_selector_values" />
     72     <SwitchPreference
     73         android:key="window_show"
     74         android:persistent="true"
     75         android:title="@string/captions_windowshow" />
     76     <!-- Entries set in code -->
     77     <ListPreference
     78         android:key="window_color"
     79         android:persistent="true"
     80         android:dependency="window_show"
     81         android:title="@string/captions_windowcolor"
     82         android:summary="%s"/>
     83     <ListPreference
     84         android:key="window_opacity"
     85         android:persistent="true"
     86         android:dependency="window_show"
     87         android:title="@string/captions_windowopacity"
     88         android:summary="%s"
     89         android:entries="@array/captioning_opacity_selector_titles"
     90         android:entryValues="@array/captioning_opacity_selector_values" />
     91 </PreferenceScreen>
     92