下面列出了android.view.ViewPropertyAnimator#cancel ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
private static void showView(View view) {
if (view != null) {
ViewPropertyAnimator animator = view.animate();
animator.cancel();
animator.alpha(1);
}
}
public static void hideView(View view) {
if (view != null) {
ViewPropertyAnimator animator = view.animate();
animator.cancel();
animator.alpha(0);
}
}
public void cancel()
{
ViewPropertyAnimator viewpropertyanimator = (ViewPropertyAnimator)b.get();
if (viewpropertyanimator != null)
{
viewpropertyanimator.cancel();
}
}
private void cancelAnimation(ViewPropertyAnimator animator) {
if (animator != null) {
animator.cancel();
}
}
private void cancelAnimation(ViewPropertyAnimator animator) {
if (animator != null) {
animator.cancel();
}
}
public static void cancelAnimation(ViewPropertyAnimator animator) {
if (animator != null) {
animator.cancel();
}
}
private void cancelAnimation(ViewPropertyAnimator animator) {
if (animator != null) {
animator.cancel();
}
}
private void cancelAnimation(ViewPropertyAnimator animator) {
if (animator != null) {
animator.cancel();
}
}