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

butterknife.BindFloat Maven / Gradle / Ivy

The newest version!
package butterknife;

import androidx.annotation.DimenRes;
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 dimension resource ID whose type is explicitly defined as float.
 * 

* This is different than simply reading a normal dimension as a float value which * {@link BindDimen @BindDimen} supports. The resource must be defined as a float like * {@code 1.1}. *


 * {@literal @}BindFloat(R.dimen.image_ratio) float imageRatio;
 * 
*/ @Target(FIELD) @Retention(RUNTIME) public @interface BindFloat { /** Float resource ID to which the field will be bound. */ @DimenRes int value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy