mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
This CL adds, Catalan, Esperanto, Spanish, Spanish (US), and Tagalog keyboard tests. Bug: 13017434 Change-Id: I0f33bfeb05300e9dd525faac982c5f08e12f1847
53 lines
2.0 KiB
Java
53 lines
2.0 KiB
Java
/*
|
|
* Copyright (C) 2014 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.
|
|
*/
|
|
|
|
package com.android.inputmethod.keyboard.layout;
|
|
|
|
import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
|
|
import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
|
|
|
|
public final class Spanish extends LayoutBase {
|
|
private static final String LAYOUT_NAME = "spanish";
|
|
|
|
public Spanish(final LayoutCustomizer customizer) {
|
|
super(customizer, Symbols.class, SymbolsShifted.class);
|
|
}
|
|
|
|
@Override
|
|
public String getName() { return LAYOUT_NAME; }
|
|
|
|
@Override
|
|
ExpectedKey[][] getCommonAlphabetLayout(final boolean isPhone) { return ALPHABET_COMMON; }
|
|
|
|
public static final String ROW2_10 = "ROW2_10";
|
|
|
|
private static final ExpectedKey[][] ALPHABET_COMMON = new ExpectedKeyboardBuilder()
|
|
.setKeysOfRow(1,
|
|
key("q", moreKey("1")),
|
|
key("w", moreKey("2")),
|
|
key("e", moreKey("3")),
|
|
key("r", moreKey("4")),
|
|
key("t", moreKey("5")),
|
|
key("y", moreKey("6")),
|
|
key("u", moreKey("7")),
|
|
key("i", moreKey("8")),
|
|
key("o", moreKey("9")),
|
|
key("p", moreKey("0")))
|
|
.setLabelsOfRow(2, "a", "s", "d", "f", "g", "h", "j", "k", "l", ROW2_10)
|
|
.setLabelsOfRow(3, "z", "x", "c", "v", "b", "n", "m")
|
|
.build();
|
|
}
|