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

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

Implement popup suggestions pane

Bug: 5023981
Change-Id: Ie1d69131dbf884a3f6a2beb3ac3427e5437c1486
parent e5c705f1
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2011, 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.
*/
-->
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        style="?attr/miniKeyboardPanelStyle"
        >
    <com.android.inputmethod.latin.MoreSuggestionsView
            xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
            android:id="@+id/more_suggestions_view"
            android:layout_alignParentBottom="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            latin:keyLabelSize="@dimen/candidate_text_size"
            latin:keyHintLetterRatio="@fraction/more_suggestions_info_ratio"
            latin:keyHintLetterColor="@android:color/white"
            />
</LinearLayout>
+2 −0
Original line number Diff line number Diff line
@@ -59,6 +59,8 @@
    <dimen name="key_preview_offset_ics">0.01in</dimen>

    <dimen name="candidate_strip_height">36dip</dimen>
    <dimen name="more_suggestions_row_height">36dip</dimen>
    <dimen name="candidate_strip_minimum_height">160sp</dimen>
    <dimen name="candidate_strip_fading_edge_length">63dip</dimen>
    <!-- Amount of allowance for selecting keys in a mini popup keyboard by sliding finger. -->
    <!-- popup_key_height x 1.2 -->
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@
    <dimen name="key_preview_offset_ics">0.05in</dimen>

    <dimen name="candidate_strip_height">44dip</dimen>
    <dimen name="more_suggestions_row_height">44dip</dimen>
    <dimen name="candidate_strip_padding">15.0mm</dimen>
    <dimen name="candidate_min_width">0.3in</dimen>
    <dimen name="candidate_padding">12dip</dimen>
+2 −3
Original line number Diff line number Diff line
@@ -70,9 +70,8 @@
    <dimen name="key_preview_offset_ics">0.05in</dimen>

    <dimen name="candidate_strip_height">44dip</dimen>
    <!-- candidate_strip_minimum_height =
         key_preview_height_holo - key_preview_offset_holo + alpha -->
    <dimen name="candidate_strip_minimum_height">18mm</dimen>
    <dimen name="more_suggestions_row_height">44dip</dimen>
    <dimen name="candidate_strip_minimum_height">200sp</dimen>
    <dimen name="candidate_strip_padding">15.0mm</dimen>
    <dimen name="candidate_min_width">46dip</dimen>
    <dimen name="candidate_padding">8dip</dimen>
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
        <attr name="miniKeyboardPanelStyle" format="reference" />
        <!-- Suggestions strip style -->
        <attr name="suggestionsStripBackgroundStyle" format="reference" />
        <attr name="suggestionsPaneViewStyle" format="reference" />
        <attr name="suggestionBackgroundStyle" format="reference" />
        <attr name="suggestionPreviewBackgroundStyle" format="reference" />
        <attr name="candidateViewStyle" format="reference" />
Loading