public void setY(float y) { View view = mView.get(); if (view != null) { setTranslationY(y - view.getTop()); } }
@Override public void setValue(View object, float value) { AnimatorProxy.wrap(object).setTranslationY(value); }
public static void setTranslationY(View view, float translationY) { if (NEEDS_PROXY) { wrap(view).setTranslationY(translationY); } else { Honeycomb.setTranslationY(view, translationY); } }
case TRANSLATION_Y: mProxy.setTranslationY(value); break; case ROTATION:
public void setY(float y) { View view = mView.get(); if (view != null) { setTranslationY(y - view.getTop()); } }
@Override public void setValue(View object, float value) { AnimatorProxy.wrap(object).setTranslationY(value); }
public static void setTranslationY(View view, float translationY) { if (NEEDS_PROXY) { wrap(view).setTranslationY(translationY); } else { Honeycomb.setTranslationY(view, translationY); } }
case TRANSLATION_Y: mProxy.setTranslationY(value); break; case ROTATION:
/** * 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 > 10) { mMainView.setTranslationY(mainViewOffset); } else { AnimatorProxy.wrap(mMainView).setTranslationY(mainViewOffset); } } }
/** * 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); } } }
/** * 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); } } }