blob: 61e8bd0e3de1a80f195655a1520489d05705db27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package org.holoeverywhere;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
public class HoloEverywhere {
public static enum PreferenceImpl {
JSON, XML
}
/**
* When you call new activity it will be has parent activity theme
*/
public static boolean ALWAYS_USE_PARENT_THEME;
/**
* Print some debug lines in Log
*/
public static boolean DEBUG;
/**
* Disable any overscroll effects for views
*/
public static boolean DISABLE_OVERSCROLL_EFFECT;
/**
* Since 1.5 to preferences can be assigned id instead of key. But for
* saving values in SharedPreferences using key, and it has next format:
*
* <pre>
* preference_0x7fABCDEF
* </pre>
*
* If it options true - key for the preference will be name of id row:
*
* <pre>
* <Preference holo:id="@+id/myCoolPreference" />
* Key for SharedPreferences: myCoolPreference
* </pre>
*/
public static boolean NAMED_PREFERENCES;
/**
* Main package of HoloEverywhere
*/
public static final String PACKAGE;
/**
* Preference implementation using by default
*/
public static PreferenceImpl PREFERENCE_IMPL;
/**
* Wrap any context menu calls by native classes. Like it do ABS on Android
* 4.0+ with options menu
*/
public static boolean WRAP_TO_NATIVE_CONTEXT_MENU;
static {
PACKAGE = HoloEverywhere.class.getPackage().getName();
DEBUG = false;
ALWAYS_USE_PARENT_THEME = false;
NAMED_PREFERENCES = true;
DISABLE_OVERSCROLL_EFFECT = VERSION.SDK_INT < VERSION_CODES.HONEYCOMB;
WRAP_TO_NATIVE_CONTEXT_MENU = VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;
PREFERENCE_IMPL = PreferenceImpl.XML;
}
private HoloEverywhere() {
}
}
|