|
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 FloatConstraint
Annotation type to set the valid numerical range for an EditTextPreference.
BindPreference.
Example
@FloatConstraint(min = 1.0, max = 5.0) @BindPreference(format="Updates every %s hours") public static final String PREF_PROJECT_UPDATE_INTERVAL = "update_interval";
| Optional Element Summary | |
|---|---|
java.lang.String |
key
The key value associated with a preference. |
float |
max
|
float |
min
|
public abstract java.lang.String key
Preference.getKey()public abstract float min
public abstract float max
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||