donottranslate-text-decorator.xml revision ee0d8077d604c9bdbdfd29675c1d28ea01b2c9bb
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>180</item>
65        <item>323</item>
66        <item>97</item>
67        <item>240</item>
68        <item>68</item>
69        <item>268</item>
70        <item>180</item>
71        <item>380</item>
72        <item>420</item>
73        <item>140</item>
74        <item>392</item>
75        <item>112</item>
76    </integer-array>
77
78    <!-- Background color to be used to highlight the target text when the add-to-dictionary
79         indicator is visible. -->
80    <color name="text_decorator_add_to_dictionary_indicator_text_highlight_color">
81        #D1E7B7
82    </color>
83
84    <!-- Foreground color of the commit indicator. -->
85    <color name="text_decorator_add_to_dictionary_indicator_background_color">
86        #4EB848
87    </color>
88
89    <!-- Foreground color of the add-to-dictionary indicator. -->
90    <color name="text_decorator_add_to_dictionary_indicator_foreground_color">
91        #FFFFFF
92    </color>
93
94    <!-- Viewport size of "text_decorator_add_to_dictionary_indicator_path". -->
95    <integer name="text_decorator_add_to_dictionary_indicator_path_size">
96        480
97    </integer>
98
99    <!-- Coordinates of the closed path to be used to render the add-to-dictionary indicator.
100         The format is: X[0], Y[0], X[1], Y[1], ..., X[N-1], Y[N-1] -->
101    <integer-array name="text_decorator_add_to_dictionary_indicator_path">
102        <item>380</item>
103        <item>260</item>
104        <item>260</item>
105        <item>260</item>
106        <item>260</item>
107        <item>380</item>
108        <item>220</item>
109        <item>380</item>
110        <item>220</item>
111        <item>260</item>
112        <item>100</item>
113        <item>260</item>
114        <item>100</item>
115        <item>220</item>
116        <item>220</item>
117        <item>220</item>
118        <item>220</item>
119        <item>100</item>
120        <item>260</item>
121        <item>100</item>
122        <item>260</item>
123        <item>220</item>
124        <item>380</item>
125        <item>220</item>
126    </integer-array>
127</resources>
128