当前位置: 首页>>代码示例>>Java>>正文


Java ObjectAnimator.setPropertyName方法代码示例

本文整理汇总了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});
    }

}
 
开发者ID:tianyuan168326,项目名称:nono-android,代码行数:21,代码来源:MyRapidFloatingActionContentLabelList.java

示例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});
    }

}
 
开发者ID:tianyuan168326,项目名称:nono-android,代码行数:21,代码来源:MyRapidFloatingActionContentLabelList.java

示例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);
}
 
开发者ID:canyinghao,项目名称:CanDialog,代码行数:14,代码来源:PathAnimatorInflater.java


注:本文中的com.nineoldandroids.animation.ObjectAnimator.setPropertyName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。