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

butterknife.BindBool Maven / Gradle / Ivy

The newest version!
package butterknife;

import androidx.annotation.BoolRes;
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 boolean resource ID.
 * 

 * {@literal @}BindBool(R.bool.is_tablet) boolean isTablet;
 * 
*/ @Target(FIELD) @Retention(RUNTIME) public @interface BindBool { /** Boolean resource ID to which the field will be bound. */ @BoolRes int value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy