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

Commit 212ee95d authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Import 7 inch keyboard from Honeycomb-MR2"

parents ddb61ea4 0d22fc45
Loading
Loading
Loading
Loading
+39 −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.
*/
-->

<resources>
    <!-- keyboardHeight = key_height*4 + key_bottom_gap*3 -->
    <dimen name="keyboardHeight">45.0mm</dimen>
    <!-- key_height + key_bottom_gap = popup_key_height -->
    <!-- <dimen name="key_height">14.5mm</dimen> -->
    <dimen name="key_bottom_gap">1.3mm</dimen>
    <dimen name="key_horizontal_gap">1.3mm</dimen>
    <dimen name="popup_key_height">13.0mm</dimen>
    <dimen name="keyboard_top_padding">1.1mm</dimen>
    <dimen name="keyboard_bottom_padding">0.0mm</dimen>
    <!-- key_height x 1.0 -->
    <dimen name="key_preview_height">13.0mm</dimen>

    <dimen name="key_letter_size">25dip</dimen>
    <dimen name="key_label_text_size">18dip</dimen>
    <!-- left or right padding of label alignment -->
    <dimen name="key_label_horizontal_alignment_padding">18dip</dimen>
    <dimen name="candidate_strip_padding">40.0mm</dimen>
</resources>
+45 −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.
*/
-->

<resources>
    <bool name="config_enable_show_settings_key_option">true</bool>
    <bool name="config_enable_show_subtype_settings">false</bool>
    <bool name="config_enable_show_voice_key_option">false</bool>
    <bool name="config_enable_show_popup_on_keypress_option">false</bool>
    <bool name="config_enable_show_recorrection_option">false</bool>
    <bool name="config_enable_quick_fixes_option">false</bool>
    <bool name="config_enable_bigram_suggestions_option">false</bool>
    <bool name="config_candidate_highlight_font_color_enabled">false</bool>
    <bool name="config_swipe_down_dismiss_keyboard_enabled">false</bool>
    <bool name="config_sliding_key_input_enabled">false</bool>
    <bool name="config_digit_popup_characters_enabled">false</bool>
    <!-- Whether or not Popup on key press is enabled by default -->
    <bool name="config_default_popup_preview">false</bool>
    <bool name="config_default_sound_enabled">true</bool>
    <bool name="config_use_spacebar_language_switcher">false</bool>
    <!-- Showing mini keyboard, just above the touched point if true, aligned to the key if false -->
    <bool name="config_show_mini_keyboard_at_touched_point">true</bool>
    <!-- The language is never displayed if == 0, always displayed if < 0 -->
    <integer name="config_delay_before_fadeout_language_on_spacebar">1200</integer>
    <!-- This configuration is the index of the array {@link KeyboardSwitcher.KEYBOARD_THEMES}. -->
    <string name="config_default_keyboard_theme_id" translatable="false">5</string>
    <string name="config_text_size_of_language_on_spacebar" translatable="false">medium</string>
    <integer name="config_max_popup_keyboard_column">5</integer>
</resources>
+53 −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.
*/
-->

<resources>
    <!-- keyboardHeight = key_height*4 + key_bottom_gap*3 -->
    <dimen name="keyboardHeight">48.0mm</dimen>
    <fraction name="maxKeyboardHeight">50%p</fraction>
    <fraction name="minKeyboardHeight">-61.8%p</fraction>
    <!-- key_height + key_bottom_gap = popup_key_height -->
    <!-- <dimen name="key_height">14.5mm</dimen> -->
    <dimen name="key_bottom_gap">1.0mm</dimen>
    <dimen name="key_horizontal_gap">1.0mm</dimen>
    <dimen name="popup_key_height">10.0mm</dimen>
    <dimen name="keyboard_top_padding">1.1mm</dimen>
    <dimen name="keyboard_bottom_padding">0.0mm</dimen>
    <!-- key_height x 1.0 -->
    <dimen name="key_preview_height">13.0mm</dimen>
    <dimen name="mini_keyboard_key_horizontal_padding">12dip</dimen>
    <!-- Amount of allowance for selecting keys in a mini popup keyboard by sliding finger. -->
    <!-- popup_key_height x 1.2 -->
    <dimen name="mini_keyboard_slide_allowance">15.6mm</dimen>
    <!-- popup_key_height x -1.0 -->
    <dimen name="mini_keyboard_vertical_correction">-13.0mm</dimen>

    <fraction name="key_letter_ratio">45%</fraction>
    <fraction name="key_label_text_ratio">29%</fraction>
    <fraction name="key_preview_text_ratio">82%</fraction>
    <!-- left or right padding of label alignment -->
    <dimen name="key_label_horizontal_alignment_padding">6dip</dimen>

    <dimen name="candidate_strip_height">46dip</dimen>
    <dimen name="candidate_strip_padding">15.0mm</dimen>
    <dimen name="candidate_min_width">0.3in</dimen>
    <dimen name="candidate_padding">12dip</dimen>
    <dimen name="candidate_text_size">22dip</dimen>
</resources>
+23 −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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!--  Default value of the visibility of the suggestion strip -->
    <string name="prefs_suggestion_visibility_default_value" translatable="false">1</string>
</resources>
+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.
*/
-->

<!-- TODO: This is work around to avoid resource selection issue. This file must be removed when the
     issue is sorted out. -->
<Keyboard
    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
    latin:keyboardHeight="@dimen/keyboardHeight"
    latin:maxKeyboardHeight="@fraction/maxKeyboardHeight"
    latin:minKeyboardHeight="@fraction/minKeyboardHeight"
    latin:rowHeight="25%p"
    latin:horizontalGap="@dimen/key_horizontal_gap"
    latin:verticalGap="@dimen/key_bottom_gap"
    latin:popupKeyboardTemplate="@xml/kbd_popup_template"
    latin:maxPopupKeyboardColumn="@integer/config_max_popup_keyboard_column"
    latin:keyboardLocale="en,en_US,en_GB"
>
    <include
        latin:keyboardLayout="@xml/kbd_qwerty_rows" />
</Keyboard>
Loading