butterknife.BindInt 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 androidx.annotation.IntegerRes;
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 the specified integer resource ID.
*
* {@literal @}BindInt(R.int.columns) int columns;
*
*/
@Target(FIELD)
@Retention(RUNTIME)
public @interface BindInt {
/** Integer resource ID to which the field will be bound. */
@IntegerRes int value();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy