|
0.0.2
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={TYPE,FIELD})
@Retention(value=RUNTIME)
@Inherited
public @interface IntegerConstraint
Annotation type to set the valid numerical range for an EditTextPreference.
BindPreference.
Example
@IntegerConstraint(min = 3, max = 100) @BindPreference(format="Updates every %s hours") public static final String PREF_PROJECT_UPDATE_INTERVAL = "update_interval";
| Required Element Summary | |
|---|---|
int |
max
|
| Optional Element Summary | |
|---|---|
java.lang.String |
key
The key value associated with a preference. |
int |
min
|
| Element Detail |
|---|
public abstract int max
public abstract java.lang.String key
Preference.getKey()public abstract int min
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||