Example usage for android.util Property get

List of usage examples for android.util Property get

Introduction

In this page you can find the example usage for android.util Property get.

Prototype

public abstract V get(T object);

Source Link

Document

Returns the current value that this property represents on the given object.

Usage

From source file:com.bartoszlipinski.viewpropertyobjectanimator.ViewPropertyObjectAnimator.java

private void animateProperty(Property<View, Float> property, float toValue) {
    if (hasView()) {
        float fromValue = property.get(mView.get());
        animatePropertyBetween(property, fromValue, toValue);
    }/* w  w  w . j a  va2  s . com*/
}

From source file:com.bartoszlipinski.viewpropertyobjectanimator.ViewPropertyObjectAnimator.java

private void animatePropertyBy(Property<View, Float> property, float byValue) {
    if (hasView()) {
        float fromValue = property.get(mView.get());
        float toValue = fromValue + byValue;
        animatePropertyBetween(property, fromValue, toValue);
    }/*from w  w w. j  a  va 2  s.co  m*/
}