1 // Copyright 2011 Google Inc. All Rights Reserved.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 package com.hughes.android.dictionary;
19 static final String DICTIONARY_CONFIGS = "dictionaryConfigs";
21 static final String DICT_FILE = "dictFile";
22 static final String INDEX_INDEX = "indexIndex";
23 static final String SEARCH_TOKEN = "searchToken";
24 static final String CAN_AUTO_LAUNCH_DICT = "canAutoLaunch";
26 public static final String THANKS_FOR_UPDATING_VERSION = "thanksForUpdatingVersion";
29 DEFAULT(R.style.Theme_Default, R.style.Theme_Light_TokenRow_Fg,
30 R.drawable.theme_default_token_row_main_bg,
31 R.drawable.theme_default_token_row_other_bg,
32 R.drawable.theme_default_other_lang_bg),
34 LIGHT(R.style.Theme_Light,
35 R.style.Theme_Light_TokenRow_Fg,
36 R.drawable.theme_light_token_row_main_bg,
37 R.drawable.theme_light_token_row_other_bg,
38 R.drawable.theme_light_other_lang_bg);
40 private Theme(final int themeId, final int tokenRowFg,
41 final int tokenRowMainBg, final int tokenRowOtherBg,
42 final int otherLangBg) {
43 this.themeId = themeId;
44 this.tokenRowFg = tokenRowFg;
45 this.tokenRowMainBg = tokenRowMainBg;
46 this.tokenRowOtherBg = tokenRowOtherBg;
47 this.otherLangBg = otherLangBg;
52 final int tokenRowMainBg;
53 final int tokenRowOtherBg;
54 final int otherLangBg;