android.util.IntProperty Java Examples

The following examples show how to use android.util.IntProperty. 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 IntPropertyValuesHolder(Property property, Keyframes.IntKeyframes keyframes) {
    super(property);
    mValueType = int.class;
    mKeyframes = keyframes;
    mIntKeyframes = keyframes;
    if (property instanceof  IntProperty) {
        mIntProperty = (IntProperty) 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 IntPropertyValuesHolder(Property property, int... values) {
    super(property);
    setIntValues(values);
    if (property instanceof  IntProperty) {
        mIntProperty = (IntProperty) 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 IntProperty) {
        mIntProperty = (IntProperty) property;
    } else {
        super.setProperty(property);
    }
}
 
Example #4
Source File: RampAnimator.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
public RampAnimator(T object, IntProperty<T> property) {
    mObject = object;
    mProperty = property;
    mChoreographer = Choreographer.getInstance();
}