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 Project: android_9.0.0_r45   Author: lulululbj   File: PropertyValuesHolder.java    License: 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 Project: android_9.0.0_r45   Author: lulululbj   File: PropertyValuesHolder.java    License: 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 Project: android_9.0.0_r45   Author: lulululbj   File: PropertyValuesHolder.java    License: 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);
    }
}