本文整理匯總了Java中android.util.Property.get方法的典型用法代碼示例。如果您正苦於以下問題:Java Property.get方法的具體用法?Java Property.get怎麽用?Java Property.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.util.Property
的用法示例。
在下文中一共展示了Property.get方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getActualPropertyValue
import android.util.Property; //導入方法依賴的package包/類
Float getActualPropertyValue(Property<T, Float> property) {
Float lastTarget = getLastTargetValue(property.getName());
if(lastTarget == null) {
lastTarget = property.get(mAnimationTargetView);
}
return lastTarget;
}
示例2: animatePropertyBy
import android.util.Property; //導入方法依賴的package包/類
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);
}
}
示例3: ofFloat
import android.util.Property; //導入方法依賴的package包/類
@Override
public ObjectAnimator ofFloat(View view, Property<View, Float> property,
float startFraction, float endFraction) {
float start = property.get(view) * startFraction;
float end = property.get(view) * endFraction;
if (start == end) {
return null;
}
property.set(view, start);
return ObjectAnimator.ofFloat(view, property, end);
}
示例4: ofInt
import android.util.Property; //導入方法依賴的package包/類
@Override
public ObjectAnimator ofInt(View view, Property<View, Integer> property,
float startFraction, float endFraction) {
int start = (int) (property.get(view) * startFraction);
int end = (int) (property.get(view) * endFraction);
if (start == end) {
return null;
}
property.set(view, start);
return ObjectAnimator.ofInt(view, property, end);
}
示例5: createAnimation
import android.util.Property; //導入方法依賴的package包/類
protected final AdditiveAnimation createAnimation(Property<V, Float> property, float targetValue) {
AdditiveAnimation animation = new AdditiveAnimation(mCurrentTarget, property, property.get(mCurrentTarget), targetValue);
animation.setCustomInterpolator(mCurrentCustomInterpolator);
return animation;
}
示例6: animateProperty
import android.util.Property; //導入方法依賴的package包/類
private void animateProperty(Property<View, Float> property, float toValue) {
if (hasView()) {
float fromValue = property.get(mView.get());
animatePropertyBetween(property, fromValue, toValue);
}
}