blob: a76c78a4cbc8ff9fede9503ed9f28fdcdd418532 [file] [log] [blame]
The Android Open Source Project923bf412009-03-13 15:11:42 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4**
5** Copyright 2008, 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>
Ken Wakasa7642eb32011-05-06 19:56:07 +090022 <!-- keyboardHeight = key_height*4 + key_bottom_gap*3, key_height=0.295in -->
23 <dimen name="keyboardHeight">1.285in</dimen>
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +090024 <fraction name="maxKeyboardHeight">50%p</fraction>
25 <fraction name="minKeyboardHeight">-61.8%p</fraction>
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090026 <!-- key_height + key_bottom_gap = popup_key_height -->
Ken Wakasa7642eb32011-05-06 19:56:07 +090027 <!-- <dimen name="key_height">0.295in</dimen> -->
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090028 <dimen name="key_bottom_gap">0.035in</dimen>
Tadashi G. Takaoka58bfa352010-10-19 17:08:54 +090029 <dimen name="key_horizontal_gap">0.000in</dimen>
Ken Wakasa7642eb32011-05-06 19:56:07 +090030 <dimen name="popup_key_height">0.330in</dimen>
Tadashi G. Takaoka3e99aa02010-11-10 14:58:15 -080031 <dimen name="keyboard_top_padding">0.00in</dimen>
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090032 <dimen name="keyboard_bottom_padding">0.06in</dimen>
Tadashi G. Takaoka6d81e2b2011-04-08 14:45:19 +090033 <dimen name="keyboard_horizontal_edges_padding">0.0in</dimen>
Tadashi G. Takaokada4bfbb2011-04-06 13:54:37 +090034 <dimen name="mini_keyboard_horizontal_padding">16dip</dimen>
35 <dimen name="mini_keyboard_horizontal_padding_holo">32dip</dimen>
Tadashi G. Takaokacc55d942011-01-01 14:07:04 +090036 <dimen name="mini_keyboard_key_horizontal_padding">8dip</dimen>
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090037 <!-- Amount of allowance for selecting keys in a mini popup keyboard by sliding finger. -->
Tadashi G. Takaoka59b7bd02010-11-05 18:41:12 +090038 <!-- popup_key_height x 1.2 -->
Ken Wakasa7642eb32011-05-06 19:56:07 +090039 <dimen name="mini_keyboard_slide_allowance">0.396in</dimen>
Tadashi G. Takaoka3e99aa02010-11-10 14:58:15 -080040 <!-- popup_key_height x -1.0 -->
Ken Wakasa7642eb32011-05-06 19:56:07 +090041 <dimen name="mini_keyboard_vertical_correction">-0.330in</dimen>
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090042 <!-- We use "inch", not "dip" because this value tries dealing with physical distance related
43 to user's finger. -->
44 <dimen name="keyboard_vertical_correction">-0.05in</dimen>
45
Tadashi G. Takaokad1578342011-05-12 23:49:19 +090046 <fraction name="key_letter_ratio">45%</fraction>
Tadashi G. Takaoka9d9522a2011-06-15 12:36:53 +090047 <fraction name="key_label_ratio">29%</fraction>
48 <fraction name="key_hint_letter_ratio">23%</fraction>
49 <fraction name="key_uppercase_letter_ratio">35%</fraction>
Tadashi G. Takaokada4bfbb2011-04-06 13:54:37 +090050 <!-- left or right padding of label alignment -->
Tadashi G. Takaokaff483e82011-05-12 14:49:18 +090051 <dimen name="key_label_horizontal_alignment_padding">21dip</dimen>
Tadashi G. Takaokada4bfbb2011-04-06 13:54:37 +090052 <dimen name="key_preview_height">80sp</dimen>
Tadashi G. Takaokaa3aeaaf2011-05-13 20:52:19 +090053 <dimen name="key_preview_offset">0.1in</dimen>
Tadashi G. Takaokad1578342011-05-12 23:49:19 +090054 <fraction name="key_preview_text_ratio">82%</fraction>
Tadashi G. Takaokada4bfbb2011-04-06 13:54:37 +090055 <dimen name="key_preview_height_holo">130sp</dimen>
56 <dimen name="key_preview_offset_holo">0.193in</dimen>
57
Amith Yamasaniffa3fdd2009-08-19 15:16:33 -070058 <dimen name="candidate_strip_height">42dip</dimen>
Tadashi G. Takaoka7a3d3ae2011-04-13 14:12:24 +090059 <!-- candidate_strip_minimum_height =
60 key_preview_height_holo - key_preview_offset_holo + alpha -->
61 <dimen name="candidate_strip_minimum_height">100sp</dimen>
Ken Wakasa749b1ea2010-09-16 20:21:30 +090062 <dimen name="candidate_strip_fading_edge_length">63dip</dimen>
Tadashi G. Takaokae49bd1c2010-12-06 21:26:38 +090063 <dimen name="candidate_strip_padding">0dip</dimen>
Tadashi G. Takaoka37b6b442011-05-09 19:49:13 +090064 <dimen name="candidate_min_width">32dip</dimen>
65 <dimen name="candidate_padding">6dip</dimen>
Tadashi G. Takaokae49bd1c2010-12-06 21:26:38 +090066 <dimen name="candidate_text_size">18dip</dimen>
satok979f8692010-08-20 14:35:02 +090067 <!-- If the screen height in landscape is larger than the below value, then the keyboard
68 will not go into extract (fullscreen) mode. -->
69 <dimen name="max_height_for_fullscreen">2.5in</dimen>
Tadashi G. Takaokacd7b7d32010-10-12 15:02:44 +090070
Tadashi G. Takaoka2b4cc0d2010-09-28 14:35:21 +090071 <dimen name="key_hysteresis_distance">0.05in</dimen>
satok979f8692010-08-20 14:35:02 +090072</resources>