]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/C.java
Switching to WebView!
[Dictionary.git] / src / com / hughes / android / dictionary / C.java
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 //
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
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
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.
14
15 package com.hughes.android.dictionary;
16
17 public class C {
18
19   static final String DICTIONARY_CONFIGS = "dictionaryConfigs";
20
21   static final String DICT_INDEX = "dictIndex";
22   static final String INDEX_INDEX = "indexIndex";
23   static final String SEARCH_TOKEN = "searchToken";
24
25   public static final String THANKS_FOR_UPDATING_VERSION = "thanksForUpdatingVersion";
26
27   enum Theme {
28     DEFAULT(R.style.Theme_Default, R.style.Theme_Light_TokenRow_Fg,
29         R.drawable.theme_default_token_row_main_bg,
30         R.drawable.theme_default_token_row_other_bg,
31         R.drawable.theme_default_other_lang_bg),
32         
33         LIGHT(R.style.Theme_Light,
34         R.style.Theme_Light_TokenRow_Fg,
35         R.drawable.theme_light_token_row_main_bg,
36         R.drawable.theme_light_token_row_other_bg,
37         R.drawable.theme_light_other_lang_bg);
38
39     private Theme(final int themeId, final int tokenRowFg,
40         final int tokenRowMainBg, final int tokenRowOtherBg,
41         final int otherLangBg) {
42       this.themeId = themeId;
43       this.tokenRowFg = tokenRowFg;
44       this.tokenRowMainBg = tokenRowMainBg;
45       this.tokenRowOtherBg = tokenRowOtherBg;
46       this.otherLangBg = otherLangBg;
47     }
48
49     final int themeId;
50     final int tokenRowFg;
51     final int tokenRowMainBg;
52     final int tokenRowOtherBg;
53     final int otherLangBg;
54   }
55
56 }