Make keyboard vertical correction configurable (DO NOT MERGE)
Before this change, the verticalCorrection value was defined by "dpi" that is relative to device screen. This change defines the verticalCorrection by absolute unit "in". Bug: 3066107 Change-Id: I72c2448894a1084c582c2f1fb942b5fa8353f028
This commit is contained in:
parent
e13a301328
commit
ff49b79dfb
2 changed files with 12 additions and 5 deletions
|
@ -28,10 +28,17 @@
|
|||
will not go into extract (fullscreen) mode. -->
|
||||
<dimen name="max_height_for_fullscreen">2.5in</dimen>
|
||||
<dimen name="key_text_size">22sp</dimen>
|
||||
<dimen name="key_label_text_size">14sp</dimen>
|
||||
<dimen name="key_preview_offset">0dip</dimen>
|
||||
<dimen name="key_preview_height">80dip</dimen>
|
||||
<!-- Amount of allowance for selecting keys in a mini popup keyboard by sliding finger. -->
|
||||
<!-- key_height x 1.7 -->
|
||||
<dimen name="mini_keyboard_slide_allowance">91.8dip</dimen>
|
||||
<!-- -key_height x 1.0 -->
|
||||
<dimen name="mini_keyboard_vertical_correction">-54dip</dimen>
|
||||
<dimen name="key_hysteresis_distance">0.05in</dimen>
|
||||
<!-- We use "inch", not "dip" because this value tries dealing with physical distance related
|
||||
to user's finger. -->
|
||||
<dimen name="keyboard_vertical_correction">-0.06in</dimen>
|
||||
<dimen name="candidate_min_touchable_width">0.3in</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -22,12 +22,12 @@
|
|||
<item name="keyTextSize">@dimen/key_text_size</item>
|
||||
<item name="keyTextColor">#FFFFFFFF</item>
|
||||
<item name="keyPreviewLayout">@layout/key_preview</item>
|
||||
<item name="keyPreviewOffset">0dip</item>
|
||||
<item name="keyPreviewHeight">80dip</item>
|
||||
<item name="labelTextSize">14sp</item>
|
||||
<item name="keyPreviewOffset">@dimen/key_preview_offset</item>
|
||||
<item name="keyPreviewHeight">@dimen/key_preview_height</item>
|
||||
<item name="labelTextSize">@dimen/key_label_text_size</item>
|
||||
<item name="popupLayout">@layout/keyboard_popup</item>
|
||||
<item name="keyHysteresisDistance">0.05in</item>
|
||||
<item name="verticalCorrection">-10dip</item>
|
||||
<item name="keyHysteresisDistance">@dimen/key_hysteresis_distance</item>
|
||||
<item name="verticalCorrection">@dimen/keyboard_vertical_correction</item>
|
||||
<item name="shadowColor">#BB000000</item>
|
||||
<item name="shadowRadius">2.75</item>
|
||||
<item name="backgroundDimAmount">0.5</item>
|
||||
|
|
Loading…
Reference in a new issue