All Downloads are FREE. Search and download functionalities are using the official Maven repository.

butterknife.BindBitmap Maven / Gradle / Ivy

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