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

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

Dynamically determine key preview backing view height

Bug: 6023947
Change-Id: I53a5c0eb99100a0dfe3e025808f5dc55747d1287
parent 65fe7f79
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,15 +20,15 @@

<com.android.inputmethod.latin.InputView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
>
    <!-- The height of key_preview_backing view will automatically be determined by code. -->
    <View
        android:id="@+id/key_preview_backing"
        android:layout_width="match_parent"
        android:layout_height="@dimen/key_preview_backing_height" />
        android:layout_height="0dip" />

    <!-- On tablets, the suggestions strip is centered with horizontal paddings on both sides
         because width of the landscape mode is too long for the suggestions strip. This
+0 −2
Original line number Diff line number Diff line
@@ -62,8 +62,6 @@
    <dimen name="more_suggestions_row_height">36dip</dimen>
    <integer name="max_more_suggestions_row">2</integer>
    <fraction name="min_more_suggestions_width">60%</fraction>
    <!-- key_preview_backing_height = more_suggestions_row_height * max_more_suggestions_row -->
    <dimen name="key_preview_backing_height">72dip</dimen>
    <!-- Amount of allowance for selecting keys in a mini popup keyboard by sliding finger. -->
    <!-- popup_key_height x 1.2 -->
    <dimen name="more_keys_keyboard_slide_allowance">0.336in</dimen>
+0 −2
Original line number Diff line number Diff line
@@ -53,6 +53,4 @@
    <dimen name="suggestions_strip_padding">40.0mm</dimen>
    <integer name="max_more_suggestions_row">5</integer>
    <fraction name="min_more_suggestions_width">50%</fraction>
    <!-- key_preview_backing_height = more_suggestions_row_height * max_more_suggestions_row -->
    <dimen name="key_preview_backing_height">220dip</dimen>
</resources>
+0 −2
Original line number Diff line number Diff line
@@ -70,8 +70,6 @@
    <dimen name="more_suggestions_row_height">44dip</dimen>
    <integer name="max_more_suggestions_row">6</integer>
    <fraction name="min_more_suggestions_width">90%</fraction>
    <!-- key_preview_backing_height = more_suggestions_row_height * max_more_suggestions_row -->
    <dimen name="key_preview_backing_height">264dip</dimen>
    <dimen name="suggestions_strip_padding">15.0mm</dimen>
    <dimen name="suggestion_min_width">0.3in</dimen>
    <dimen name="suggestion_padding">12dip</dimen>
+0 −2
Original line number Diff line number Diff line
@@ -73,8 +73,6 @@
    <dimen name="more_suggestions_row_height">44dip</dimen>
    <integer name="max_more_suggestions_row">6</integer>
    <fraction name="min_more_suggestions_width">90%</fraction>
    <!-- key_preview_backing_height = more_suggestions_row_height * max_more_suggestions_row -->
    <dimen name="key_preview_backing_height">264dip</dimen>
    <dimen name="suggestions_strip_padding">15.0mm</dimen>
    <dimen name="suggestion_min_width">46dip</dimen>
    <dimen name="suggestion_padding">8dip</dimen>
Loading