@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface BindDrawable
@BindDrawable(R.drawable.placeholder)
Drawable placeholder;
@BindDrawable(value = R.drawable.placeholder, tint = R.attr.colorAccent)
Drawable tintedPlaceholder;
| Modifier and Type | Required Element and Description |
|---|---|
int |
value
Drawable resource ID to which the field will be bound.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
tint
Color attribute resource ID that is used to tint the drawable.
|