donottranslate-text-decorator.xml revision 2412d9ae3c89db4fea8943cca884f0fb105795ef
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2014, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<resources>
22    <!-- The delay time in milliseconds from to show the commit indicator -->
23    <integer name="text_decorator_delay_in_milliseconds_to_show_commit_indicator">
24        500
25    </integer>
26
27    <!-- The extra margin in dp around the hit area of the commit/add-to-dictionary indicator -->
28    <integer name="text_decorator_hit_area_margin_in_dp">
29        4
30    </integer>
31
32    <!-- If true, the commit/add-to-text indicator will be suppressed when the word isn't going to
33         trigger auto-correction. -->
34    <bool name="text_decorator_only_for_auto_correction">true</bool>
35
36    <!-- If true, the commit/add-to-text indicator will be suppressed when the word is already in
37         the dictionary. -->
38    <bool name="text_decorator_only_for_out_of_vocabulary">false</bool>
39
40    <!-- Background color to be used to highlight the target text when the commit indicator is
41         visible. -->
42    <color name="text_decorator_commit_indicator_text_highlight_color">
43        #B6E2DE
44    </color>
45
46    <!-- Background color of the commit indicator. -->
47    <color name="text_decorator_commit_indicator_background_color">
48        #48B6AC
49    </color>
50
51    <!-- Foreground color of the commit indicator. -->
52    <color name="text_decorator_commit_indicator_foreground_color">
53        #FFFFFF
54    </color>
55
56    <!-- Viewport size of "text_decorator_commit_indicator_path". -->
57    <integer name="text_decorator_commit_indicator_path_size">
58        480
59    </integer>
60
61    <!-- Coordinates of the closed path to be used to render the commit indicator.
62         The format is:  X[0], Y[0], X[1], Y[1], ..., X[N-1], Y[N-1] -->
63    <integer-array name="text_decorator_commit_indicator_path">
64        <item>240</item>
65        <item>80</item>
66        <item>212</item>
67        <item>108</item>
68        <item>323</item>
69        <item>220</item>
70        <item>80</item>
71        <item>220</item>
72        <item>80</item>
73        <item>260</item>
74        <item>323</item>
75        <item>260</item>
76        <item>212</item>
77        <item>372</item>
78        <item>240</item>
79        <item>400</item>
80        <item>400</item>
81        <item>240</item>
82    </integer-array>
83
84    <!-- Background color to be used to highlight the target text when the add-to-dictionary
85         indicator is visible. -->
86    <color name="text_decorator_add_to_dictionary_indicator_text_highlight_color">
87        #D1E7B7
88    </color>
89
90    <!-- Foreground color of the commit indicator. -->
91    <color name="text_decorator_add_to_dictionary_indicator_background_color">
92        #4EB848
93    </color>
94
95    <!-- Foreground color of the add-to-dictionary indicator. -->
96    <color name="text_decorator_add_to_dictionary_indicator_foreground_color">
97        #FFFFFF
98    </color>
99
100    <!-- Viewport size of "text_decorator_add_to_dictionary_indicator_path". -->
101    <integer name="text_decorator_add_to_dictionary_indicator_path_size">
102        480
103    </integer>
104
105    <!-- Coordinates of the closed path to be used to render the add-to-dictionary indicator.
106         The format is: X[0], Y[0], X[1], Y[1], ..., X[N-1], Y[N-1] -->
107    <integer-array name="text_decorator_add_to_dictionary_indicator_path">
108        <item>380</item>
109        <item>260</item>
110        <item>260</item>
111        <item>260</item>
112        <item>260</item>
113        <item>380</item>
114        <item>220</item>
115        <item>380</item>
116        <item>220</item>
117        <item>260</item>
118        <item>100</item>
119        <item>260</item>
120        <item>100</item>
121        <item>220</item>
122        <item>220</item>
123        <item>220</item>
124        <item>220</item>
125        <item>100</item>
126        <item>260</item>
127        <item>100</item>
128        <item>260</item>
129        <item>220</item>
130        <item>380</item>
131        <item>220</item>
132    </integer-array>
133</resources>
134