/* * 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"))) .setKeysOfRow(2, "a", "s", "d", "f", "g", "h", "j", "k", "l") .setKeysOfRow(3, "y", "x", "c", "v", "b", "n", "m") .build(); }