當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。