You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d3b5451
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultBoolean.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,22 @@
20
20
importjava.lang.annotation.RetentionPolicy;
21
21
importjava.lang.annotation.Target;
22
22
23
+
importorg.androidannotations.annotations.ResId;
24
+
23
25
/**
24
26
* Use on methods in {@link SharedPref} annotated class to specified the default
25
27
* value of this preference.
26
28
* <p/>
27
29
* The annotation value must be a <code>boolean</code>.
30
+
* <p/>
31
+
* The key of the preference will be the method name by default. This can be
32
+
* overridden by specifying a string resource with the {@link #keyRes()}
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultFloat.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,22 @@
20
20
importjava.lang.annotation.RetentionPolicy;
21
21
importjava.lang.annotation.Target;
22
22
23
+
importorg.androidannotations.annotations.ResId;
24
+
23
25
/**
24
26
* Use on methods in {@link SharedPref} annotated class to specified the default
25
27
* value of this preference.
26
28
* <p/>
27
29
* The annotation value must be a <code>float</code>.
30
+
* <p/>
31
+
* The key of the preference will be the method name by default. This can be
32
+
* overridden by specifying a string resource with the {@link #keyRes()}
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultInt.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,22 @@
20
20
importjava.lang.annotation.RetentionPolicy;
21
21
importjava.lang.annotation.Target;
22
22
23
+
importorg.androidannotations.annotations.ResId;
24
+
23
25
/**
24
26
* Use on methods in {@link SharedPref} annotated class to specified the default
25
27
* value of this preference.
26
28
* <p/>
27
29
* The annotation value must be an <code>int</code>.
30
+
* <p/>
31
+
* The key of the preference will be the method name by default. This can be
32
+
* overridden by specifying a string resource with the {@link #keyRes()}
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultLong.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,22 @@
20
20
importjava.lang.annotation.RetentionPolicy;
21
21
importjava.lang.annotation.Target;
22
22
23
+
importorg.androidannotations.annotations.ResId;
24
+
23
25
/**
24
26
* Use on methods in {@link SharedPref} annotated class to specified the default
25
27
* value of this preference.
26
28
* <p/>
27
29
* The annotation value must be a <code>long</code>.
30
+
* <p/>
31
+
* The key of the preference will be the method name by default. This can be
32
+
* overridden by specifying a string resource with the {@link #keyRes()}
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultRes.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,11 @@
27
27
* value of this preference.
28
28
* <p/>
29
29
* The annotation value must be one of R.* fields. If the value is not set, the
30
-
* field name will be used as the R.* field name.
30
+
* method name will be used as the R.* field name.
31
+
* <p/>
32
+
* The key of the preference will be the method name by default. This can be
33
+
* overridden by specifying a string resource with the {@link #keyRes()}
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/sharedpreferences/DefaultString.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,22 @@
20
20
importjava.lang.annotation.RetentionPolicy;
21
21
importjava.lang.annotation.Target;
22
22
23
+
importorg.androidannotations.annotations.ResId;
24
+
23
25
/**
24
26
* Use on methods in {@link SharedPref} annotated class to specified the default
25
27
* value of this preference.
26
28
* <p/>
27
29
* The annotation value must be a {@link String}.
30
+
* <p/>
31
+
* The key of the preference will be the method name by default. This can be
32
+
* overridden by specifying a string resource with the {@link #keyRes()}
0 commit comments