android.util.FloatProperty Java Examples

The following examples show how to use android.util.FloatProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PropertyValuesHolder.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public FloatPropertyValuesHolder(Property property, Keyframes.FloatKeyframes keyframes) {
    super(property);
    mValueType = float.class;
    mKeyframes = keyframes;
    mFloatKeyframes = keyframes;
    if (property instanceof FloatProperty) {
        mFloatProperty = (FloatProperty) mProperty;
    }
}
 
Example #2
Source File: PropertyValuesHolder.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
public FloatPropertyValuesHolder(Property property, float... values) {
    super(property);
    setFloatValues(values);
    if (property instanceof  FloatProperty) {
        mFloatProperty = (FloatProperty) mProperty;
    }
}
 
Example #3
Source File: PropertyValuesHolder.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void setProperty(Property property) {
    if (property instanceof FloatProperty) {
        mFloatProperty = (FloatProperty) property;
    } else {
        super.setProperty(property);
    }
}