diff options
| author | Diogo Ferreira <defer@cyanogenmod.com> | 2012-03-14 01:22:50 +0000 |
|---|---|---|
| committer | Diogo Ferreira <defer@cyanogenmod.com> | 2012-03-14 01:22:50 +0000 |
| commit | 0ff72a44c7ab733df2d83ddd755ddd5d89be8452 (patch) | |
| tree | 104283301a2aab03d3e55420cfdbcd079aafb42e | |
| parent | 855116a802bf39e0838a9b1b1b0398e9c7814854 (diff) | |
| download | android_packages_inputmethods_LatinIME-0ff72a44c7ab733df2d83ddd755ddd5d89be8452.tar.gz android_packages_inputmethods_LatinIME-0ff72a44c7ab733df2d83ddd755ddd5d89be8452.tar.bz2 android_packages_inputmethods_LatinIME-0ff72a44c7ab733df2d83ddd755ddd5d89be8452.zip | |
ime: Add mdpi-specific dimensions
While the fixed values on LatinIME seem to handle anything >= hdpi just
fine, the last row is missing on mdpi which causes all sorts of
frustrations. This patch uses parameters that are more suitable for this
particular pixel density.
Change-Id: I92fe7e6d6e66f6f34d392a6aa70dad99d15d1faf
| -rw-r--r-- | java/res/values-mdpi/dimens.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/java/res/values-mdpi/dimens.xml b/java/res/values-mdpi/dimens.xml new file mode 100644 index 000000000..16960513a --- /dev/null +++ b/java/res/values-mdpi/dimens.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2008, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<resources> + <!-- keyboardHeight = row_height*4 + key_bottom_gap*3 --> + <dimen name="keyboardHeight">21.75mm</dimen> + <fraction name="minKeyboardHeight">-55.8%p</fraction> + + <dimen name="popup_key_height">5.58mm</dimen> + + <!-- keyboardHeight = row_height*4 + key_bottom_gap*3 --> + <dimen name="keyboardHeight_stone">22.30mm</dimen> +</resources> |
