android.view.ViewPropertyAnimator.rotationY()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中android.view.ViewPropertyAnimator.rotationY()方法的一些代码示例,展示了ViewPropertyAnimator.rotationY()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewPropertyAnimator.rotationY()方法的具体详情如下:
包路径:android.view.ViewPropertyAnimator
类名称:ViewPropertyAnimator
方法名:rotationY

ViewPropertyAnimator.rotationY介绍

暂无

代码示例

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public ViewPropertyAnimator rotationY(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.rotationY(value);
  }
  return this;
}

代码示例来源:origin: com.nineoldandroids/library

@Override
public ViewPropertyAnimator rotationY(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.rotationY(value);
  }
  return this;
}

代码示例来源:origin: michael-rapp/ChromeLikeTabSwitcher

@Override
public final void animateRotation(@NonNull final Axis axis,
                 @NonNull final ViewPropertyAnimator animator,
                 final float angle) {
  Condition.INSTANCE.ensureNotNull(axis, "The axis may not be null");
  Condition.INSTANCE.ensureNotNull(animator, "The animator may not be null");
  if (getOrientationInvariantAxis(axis) == Axis.DRAGGING_AXIS) {
    animator.rotationY(
        getTabSwitcher().getLayout() == Layout.PHONE_LANDSCAPE ? -1 * angle : angle);
  } else {
    animator.rotationX(
        getTabSwitcher().getLayout() == Layout.PHONE_LANDSCAPE ? -1 * angle : angle);
  }
}

代码示例来源:origin: Android500/AwesomeDrawer

@Override
public ViewPropertyAnimator rotationY(float value) {
  android.view.ViewPropertyAnimator n = mNative.get();
  if (n != null) {
    n.rotationY(value);
  }
  return this;
}

代码示例来源:origin: kingargyle/adt-leanback-support

public static void rotationY(View view, float value) {
  view.animate().rotationY(value);
}

代码示例来源:origin: yayaa/Rotatable

@Override
  public void onAnimationEnd(Animator animation) {
    super.onAnimationEnd(animation);
    rootView.animate().rotationX(0).rotationY(0).setDuration(FIT_ANIM_TIME)
        .setInterpolator(new FastOutSlowInInterpolator()).start();
  }
});

代码示例来源:origin: andforce/iBeebo

private void animateClose(ImageView avatar, Rect ori) {

    if (ori == null) {
      return;
    }

    int[] avatarLocation = new int[2];
    avatar.getLocationOnScreen(avatarLocation);

    final int transX = ori.left - avatarLocation[0];
    final int transY = ori.top - avatarLocation[1];

    final float scaleX = (float) ori.width() / (float) avatar.getWidth();
    final float scaleY = (float) ori.height() / (float) avatar.getHeight();

    avatar.animate().translationX(transX).translationY(transY).scaleY(scaleY).scaleX(scaleX).alpha(0.7f).rotationY(0f)
        .setDuration(300)
        .setListener(new MyAnimationListener(new Runnable() {
          @Override
          public void run() {
            dismissAllowingStateLoss();
          }
        }));
  }
}

代码示例来源:origin: fookwood/Launcher3

mViewPropertyAnimator.rotationY(mRotationY);

代码示例来源:origin: WeAreFairphone/FP2-Launcher

mViewPropertyAnimator.rotationY(mRotationY);

代码示例来源:origin: klinker24/launcher3

mViewPropertyAnimator.rotationY(mRotationY);

代码示例来源:origin: klinker24/Android-Blur-Launcher

mViewPropertyAnimator.rotationY(mRotationY);

代码示例来源:origin: hencoder/PracticeDraw6

@Override
  public void onClick(final View v) {
    switch (state) {
      case 0:
        imageView.animate().rotation(180);
        break;
      case 1:
        imageView.animate().rotation(0);
        break;
      case 2:
        imageView.animate().rotationX(180);
        break;
      case 3:
        imageView.animate().rotationX(0);
        break;
      case 4:
        imageView.animate().rotationY(180);
        break;
      case 5:
        imageView.animate().rotationY(0);
        break;
    }
    state++;
    if (state == 6) {
      state = 0;
    }
  }
});

相关文章