Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aec1770e authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Tune letter text size of 7 inch tablet

Bug: 6422086
Bug: 6411272
Change-Id: Ia3c40206555353b6f0c633a529d546dc2379e9aa
parent dadcfcf0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -44,13 +44,14 @@
    <!-- left or right padding of label alignment -->
    <dimen name="key_label_horizontal_padding">18dp</dimen>

    <fraction name="key_letter_ratio">45%</fraction>
    <fraction name="key_letter_ratio">50%</fraction>
    <fraction name="key_large_letter_ratio">48%</fraction>
    <fraction name="key_label_ratio">32%</fraction>
    <fraction name="key_hint_letter_ratio">23%</fraction>
    <fraction name="key_hint_label_ratio">34%</fraction>
    <fraction name="key_uppercase_letter_ratio">29%</fraction>
    <fraction name="spacebar_text_ratio">33.33%</fraction>
    <fraction name="spacebar_text_ratio">30.0%</fraction>
    <dimen name="key_uppercase_letter_padding">4dp</dimen>

    <dimen name="suggestions_strip_padding">252.0dp</dimen>
    <integer name="max_more_suggestions_row">5</integer>
+2 −2
Original line number Diff line number Diff line
@@ -59,9 +59,9 @@
    <fraction name="key_label_ratio">25%</fraction>
    <fraction name="key_hint_letter_ratio">23%</fraction>
    <fraction name="key_hint_label_ratio">28%</fraction>
    <fraction name="key_uppercase_letter_ratio">26%</fraction>
    <fraction name="key_uppercase_letter_ratio">22%</fraction>
    <fraction name="key_preview_text_ratio">50%</fraction>
    <fraction name="spacebar_text_ratio">32.14%</fraction>
    <fraction name="spacebar_text_ratio">28.0%</fraction>
    <dimen name="key_preview_height">94.5dp</dimen>
    <dimen name="key_preview_offset">16.0dp</dimen>

+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@
        <attr name="keyHintLetterPadding" format="dimension" />
        <!-- Bottom padding of popup hint letter "..." to the edge of the key.-->
        <attr name="keyPopupHintLetterPadding" format="dimension" />
        <!-- Top and right padding of shifted letter hint to the edge of the key.-->
        <!-- Right padding of shifted letter hint to the edge of the key.-->
        <attr name="keyShiftedLetterHintPadding" format="dimension" />

        <!-- Color to use for the label in a key. -->
+1 −1
Original line number Diff line number Diff line
@@ -659,7 +659,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
                hintX = keyWidth - params.mKeyShiftedLetterHintPadding
                        - getCharWidth(KEY_LABEL_REFERENCE_CHAR, paint) / 2;
                paint.getFontMetrics(mFontMetrics);
                hintY = -mFontMetrics.top + params.mKeyShiftedLetterHintPadding;
                hintY = -mFontMetrics.top;
                paint.setTextAlign(Align.CENTER);
            } else { // key.hasHintLetter()
                // The hint letter is placed at top-right corner of the key. Used mainly on phone.