本文整理汇总了Java中com.nineoldandroids.animation.ObjectAnimator.setPropertyName方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectAnimator.setPropertyName方法的具体用法?Java ObjectAnimator.setPropertyName怎么用?Java ObjectAnimator.setPropertyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.nineoldandroids.animation.ObjectAnimator
的用法示例。
在下文中一共展示了ObjectAnimator.setPropertyName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onExpandAnimator
import com.nineoldandroids.animation.ObjectAnimator; //导入方法依赖的package包/类
public void onExpandAnimator(AnimatorSet animatorSet) {
int count = this.contentView.getChildCount();
for(int i = 0; i < count; ++i) {
View rootView = this.contentView.getChildAt(i);
ImageView iconIv = (ImageView)ABViewUtil.obtainView(rootView, com.wangjie.rapidfloatingactionbutton.R.id.rfab__content_label_list_icon_iv);
if(null == iconIv) {
return;
}
ObjectAnimator animator = new ObjectAnimator();
animator.setTarget(iconIv);
animator.setFloatValues(new float[]{45.0F, 0.0F});
animator.setPropertyName("rotation");
animator.setInterpolator(this.mOvershootInterpolator);
//animator.setStartDelay((long)(count * i * 20));
animatorSet.playTogether(new Animator[]{animator});
}
}
示例2: onCollapseAnimator
import com.nineoldandroids.animation.ObjectAnimator; //导入方法依赖的package包/类
public void onCollapseAnimator(AnimatorSet animatorSet) {
int count = this.contentView.getChildCount();
for(int i = 0; i < count; ++i) {
View rootView = this.contentView.getChildAt(i);
ImageView iconIv = (ImageView)ABViewUtil.obtainView(rootView, com.wangjie.rapidfloatingactionbutton.R.id.rfab__content_label_list_icon_iv);
if(null == iconIv) {
return;
}
ObjectAnimator animator = new ObjectAnimator();
animator.setTarget(iconIv);
animator.setFloatValues(new float[]{0.0F, 45.0F});
animator.setPropertyName("rotation");
animator.setInterpolator(this.mOvershootInterpolator);
//animator.setStartDelay((long)(count * i * 20));
animatorSet.playTogether(new Animator[]{animator});
}
}
示例3: setupObjectAnimator
import com.nineoldandroids.animation.ObjectAnimator; //导入方法依赖的package包/类
/**
* Setup ObjectAnimator's property or values from pathData.
*
* @param anim The target Animator which will be updated.
* @param arrayObjectAnimator TypedArray for the ObjectAnimator.
*
*/
private static void setupObjectAnimator(ValueAnimator anim, TypedArray arrayObjectAnimator) {
ObjectAnimator oa = (ObjectAnimator) anim;
String propertyName =
arrayObjectAnimator.getString(R.styleable.PropertyAnimator_android_propertyName);
oa.setPropertyName(propertyName);
}