當前位置: 首頁>>代碼示例>>Java>>正文


Java AnimatorProxy類代碼示例

本文整理匯總了Java中com.nineoldandroids.view.animation.AnimatorProxy的典型用法代碼示例。如果您正苦於以下問題:Java AnimatorProxy類的具體用法?Java AnimatorProxy怎麽用?Java AnimatorProxy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AnimatorProxy類屬於com.nineoldandroids.view.animation包,在下文中一共展示了AnimatorProxy類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initAnimation

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
/**
 * This function is called immediately before processing the first animation
 * frame of an animation. If there is a nonzero <code>startDelay</code>, the
 * function is called after that delay ends.
 * It takes care of the final initialization steps for the
 * animation. This includes setting mEvaluator, if the user has not yet
 * set it up, and the setter/getter methods, if the user did not supply
 * them.
 *
 *  <p>Overriders of this method should call the superclass method to cause
 *  internal mechanisms to be set up correctly.</p>
 */
@Override
void initAnimation() {
    if (!mInitialized) {
        // mValueType may change due to setter/getter setup; do this before calling super.init(),
        // which uses mValueType to set up the default type evaluator.
        if ((mProperty == null) && AnimatorProxy.NEEDS_PROXY && (mTarget instanceof View) && PROXY_PROPERTIES.containsKey(mPropertyName)) {
            setProperty(PROXY_PROPERTIES.get(mPropertyName));
        }
        int numValues = mValues.length;
        for (int i = 0; i < numValues; ++i) {
            mValues[i].setupSetterAndGetter(mTarget);
        }
        super.initAnimation();
    }
}
 
開發者ID:junchenChow,項目名稱:exciting-app,代碼行數:28,代碼來源:ObjectAnimator.java

示例2: onPanelDragged

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
@SuppressLint("NewApi")
private void onPanelDragged(int newTop) {
    mSlideState = SlideState.DRAGGING;
    // Recompute the slide offset based on the new top position
    mSlideOffset = computeSlideOffset(newTop);
    // Update the parallax based on the new slide offset
    if (mParallaxOffset > 0 && mSlideOffset >= 0) {
        int mainViewOffset = getCurrentParalaxOffset();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mMainView.setTranslationY(mainViewOffset);
        } else {
            AnimatorProxy.wrap(mMainView).setTranslationY(mainViewOffset);
        }
    }
    // Dispatch the slide event
    dispatchOnPanelSlide(mSlideableView);
    // If the slide offset is negative, and overlay is not on, we need to increase the
    // height of the main content
    if (mSlideOffset <= 0 && !mOverlayContent) {
        // expand the main view
        LayoutParams lp = (LayoutParams)mMainView.getLayoutParams();
        lp.height = mIsSlidingUp ? (newTop - getPaddingBottom()) : (getHeight() - getPaddingBottom() - mSlideableView.getMeasuredHeight() - newTop);
        mMainView.requestLayout();
    }
}
 
開發者ID:hubcarl,項目名稱:mobile-manager-tool,代碼行數:26,代碼來源:SlidingUpPanelLayout.java

示例3: applyParallaxForCurrentSlideOffset

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
/**
 * Update the parallax based on the current slide offset.
 */
@SuppressLint("NewApi")
private void applyParallaxForCurrentSlideOffset() {
	if (mParallaxOffset > 0) {
		int mainViewOffset = getCurrentParalaxOffset();
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
			mMainView.setTranslationY(mainViewOffset);
		} else {
			AnimatorProxy.wrap(mMainView).setTranslationY(mainViewOffset);
		}
	}
}
 
開發者ID:dibakarece,項目名稱:DMAudioStreamer,代碼行數:15,代碼來源:SlidingUpPanelLayout.java

示例4: applyParallaxForCurrentSlideOffset

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
/**
 * Update the parallax based on the current slide offset.
 */
@SuppressLint("NewApi")
private void applyParallaxForCurrentSlideOffset() {
    if (mParallaxOffset > 0) {
        int mainViewOffset = getCurrentParallaxOffset();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mMainView.setTranslationY(mainViewOffset);
        } else {
            AnimatorProxy.wrap(mMainView).setTranslationY(mainViewOffset);
        }
    }
}
 
開發者ID:eventtus,項目名稱:photo-editor-android,代碼行數:15,代碼來源:SlidingUpPanelLayout.java

示例5: applyParallaxForCurrentSlideOffset

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
/**
 * Update the parallax based on the current slide offset.
 */
@SuppressLint("NewApi")
private void applyParallaxForCurrentSlideOffset() {
    if (mParallaxOffset > 0) {
        int mainViewOffset = getCurrentParalaxOffset();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            mMainView.setTranslationY(mainViewOffset);
        } else {
            AnimatorProxy.wrap(mMainView).setTranslationY(mainViewOffset);
        }
    }
}
 
開發者ID:dreaminglion,項目名稱:iosched-reader,代碼行數:15,代碼來源:SlidingUpPanelLayout.java

示例6: initAnimation

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
void initAnimation() {
    if (!this.mInitialized) {
        if (this.mProperty == null && AnimatorProxy.NEEDS_PROXY && (this.mTarget instanceof
                View) && PROXY_PROPERTIES.containsKey(this.mPropertyName)) {
            setProperty((Property) PROXY_PROPERTIES.get(this.mPropertyName));
        }
        for (PropertyValuesHolder propertyValuesHolder : this.mValues) {
            propertyValuesHolder.setupSetterAndGetter(this.mTarget);
        }
        super.initAnimation();
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:13,代碼來源:ObjectAnimator.java

示例7: setAlpha

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setAlpha(View view, float alpha) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setAlpha(alpha);
    } else {
        Honeycomb.setAlpha(view, alpha);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例8: setPivotX

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setPivotX(View view, float pivotX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setPivotX(pivotX);
    } else {
        Honeycomb.setPivotX(view, pivotX);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例9: setPivotY

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setPivotY(View view, float pivotY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setPivotY(pivotY);
    } else {
        Honeycomb.setPivotY(view, pivotY);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例10: setRotation

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setRotation(View view, float rotation) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setRotation(rotation);
    } else {
        Honeycomb.setRotation(view, rotation);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例11: setRotationX

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setRotationX(View view, float rotationX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setRotationX(rotationX);
    } else {
        Honeycomb.setRotationX(view, rotationX);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例12: setRotationY

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setRotationY(View view, float rotationY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setRotationY(rotationY);
    } else {
        Honeycomb.setRotationY(view, rotationY);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例13: setScaleX

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setScaleX(View view, float scaleX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setScaleX(scaleX);
    } else {
        Honeycomb.setScaleX(view, scaleX);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例14: setScaleY

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setScaleY(View view, float scaleY) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setScaleY(scaleY);
    } else {
        Honeycomb.setScaleY(view, scaleY);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java

示例15: setScrollX

import com.nineoldandroids.view.animation.AnimatorProxy; //導入依賴的package包/類
public static void setScrollX(View view, int scrollX) {
    if (AnimatorProxy.NEEDS_PROXY) {
        AnimatorProxy.wrap(view).setScrollX(scrollX);
    } else {
        Honeycomb.setScrollX(view, scrollX);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ViewHelper.java


注:本文中的com.nineoldandroids.view.animation.AnimatorProxy類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。