KeyboardTheme.java revision d6aa94e6b5fd7abc25a8d21857211ffd0852b33a
1/* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.inputmethod.keyboard; 18 19import com.android.inputmethod.latin.R; 20 21public final class KeyboardTheme { 22 public static final int THEME_INDEX_ICS = 0; 23 public static final int THEME_INDEX_GB = 1; 24 public static final int THEME_INDEX_KLP = 2; 25 public static final int DEFAULT_THEME_INDEX = THEME_INDEX_KLP; 26 27 public static final KeyboardTheme[] KEYBOARD_THEMES = { 28 new KeyboardTheme(THEME_INDEX_ICS, R.style.KeyboardTheme_ICS), 29 new KeyboardTheme(THEME_INDEX_GB, R.style.KeyboardTheme_GB), 30 new KeyboardTheme(THEME_INDEX_KLP, R.style.KeyboardTheme_KLP), 31 }; 32 33 public final int mThemeId; 34 public final int mStyleId; 35 36 // Note: The themeId should be aligned with "themeId" attribute of Keyboard style 37 // in values/style.xml. 38 public KeyboardTheme(final int themeId, final int styleId) { 39 mThemeId = themeId; 40 mStyleId = styleId; 41 } 42} 43