2f23ad940a
This CL adds Croatian, Czech, French (QWERTY), German, Hungarian keyboard tests. Bug: 13017434 Change-Id: If567f86335d9f4a2985cc73544fe85dee32c9844
50 lines
1.9 KiB
Java
50 lines
1.9 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 Qwertz extends LayoutBase {
|
|
private static final String LAYOUT_NAME = "qwertz";
|
|
|
|
public Qwertz(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; }
|
|
|
|
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("z", 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")
|
|
.setLabelsOfRow(3, "y", "x", "c", "v", "b", "n", "m")
|
|
.build();
|
|
}
|