@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface BindFloat
This is different than simply reading a normal dimension as a float value which
@BindDimen supports. The resource must be defined as a float like
<item name="whatever" format="float" type="dimen">1.1</item>.
@BindFloat(R.dimen.image_ratio) float imageRatio;
| Modifier and Type | Required Element and Description |
|---|---|
int |
value
Float resource ID to which the field will be bound.
|