butterknife.BindBitmap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of butterknife-annotations Show documentation
Show all versions of butterknife-annotations Show documentation
Field and method binding for Android views.
The newest version!
package butterknife;
import android.graphics.Bitmap;
import androidx.annotation.DrawableRes;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Bind a field to a {@link Bitmap} from the specified drawable resource ID.
*
* {@literal @}BindBitmap(R.drawable.logo) Bitmap logo;
*
*/
@Target(FIELD)
@Retention(RUNTIME)
public @interface BindBitmap {
/** Drawable resource ID from which the {@link Bitmap} will be created. */
@DrawableRes int value();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy