Java Android动画:是否有一些Android动画效果的参考网站,我如何才能创建这个徽标动画?

Java Android动画:是否有一些Android动画效果的参考网站,我如何才能创建这个徽标动画?,java,android,animation,reference,splash-screen,Java,Android,Animation,Reference,Splash Screen,以下是动画: 现在我正在这样做 <ImageView android:id="@+id/zweet_logo" android:layout_width="200dp" android:layout_height="200dp" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@st

以下是动画:

现在我正在这样做

<ImageView
    android:id="@+id/zweet_logo"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:contentDescription="@string/description"
    android:src="@drawable/zweet_logo" />

<RelativeLayout
    android:id="@+id/appLoading"
    style="@style/GenericProgressBackgroundAppLoading"
    android:layout_width="33dp"
    android:layout_height="33dp"
    android:layout_below="@+id/zweet_logo"
    android:layout_centerHorizontal="true" >

    <ProgressBar style="@style/GenericProgressIndicatorAppLoading" />
</RelativeLayout>
这太基本了

--

对,我有iOS代码:

- (void)animateZweetLogo
{
CGRect startFrame = self.zweetLogoImageView.frame;

MTTimingFunction timingFuction  = kMTEaseOutBounce;
CGFloat duration       = kAnimateZweetLogoAnimationDuration;
CGFloat endY           = startFrame.origin.y;
CGFloat endX           = startFrame.origin.x;
CGFloat endScale       = 1;
CGFloat endRotation    = 0;
CGFloat endAlpha       = 1;

[UIView mt_animateViews:@[self.zweetLogoImageView]
               duration:duration
         timingFunction:timingFuction
                options:MTViewAnimationOptionBeginFromCurrentState
             animations:^{
                 //self.zweetLogoImageView.mt_animationPerspective = -1.0 / 500.0;

                 CGRect r        = self.zweetLogoImageView.frame;
                 r.origin.x      = endX;
                 r.origin.y      = endY;

                 // scale
                 CGFloat h       = startFrame.size.height;
                 CGFloat w       = startFrame.size.width;
                 CGFloat hh      = h * endScale;
                 CGFloat ww      = w * endScale;
                 r.size.height   = hh;
                 r.size.width    = ww;
                 r.origin.y      -= (hh - h) / 2.0;
                 r.origin.x      -= (ww - w) / 2.0;
                 self.zweetLogoImageView.frame= r;

                 // alpha
                 self.zweetLogoImageView.alpha = endAlpha;

                 // rotation
                 CGFloat radians = mt_degreesToRadians(endRotation);
                 self.zweetLogoImageView.layer.transform = CATransform3DMakeRotation(radians, 0, 1, 0);

             } completion:^{
                 [self performSelectorOnMainThread:@selector(resumeLoading) withObject:nil waitUntilDone:YES];
             }];
}

是否有一些动画库,我可以用来做一些看起来像iOS代码的事情?或者,除了在一个漫长的迭代过程中用Java编写代码并进行测试之外,没有其他方法了?

检查或。
或者developer.android.com上的开发者文档非常有用

谢谢你的链接!
    /** Define and start logo animation */
    Animation logoMoveAnimation = AnimationUtils.loadAnimation(this,
            R.anim.logo_animation);
    ImageView zweetLogo = (ImageView) findViewById(R.id.zweet_logo);
    zweetLogo.startAnimation(logoMoveAnimation);
- (void)animateZweetLogo
{
CGRect startFrame = self.zweetLogoImageView.frame;

MTTimingFunction timingFuction  = kMTEaseOutBounce;
CGFloat duration       = kAnimateZweetLogoAnimationDuration;
CGFloat endY           = startFrame.origin.y;
CGFloat endX           = startFrame.origin.x;
CGFloat endScale       = 1;
CGFloat endRotation    = 0;
CGFloat endAlpha       = 1;

[UIView mt_animateViews:@[self.zweetLogoImageView]
               duration:duration
         timingFunction:timingFuction
                options:MTViewAnimationOptionBeginFromCurrentState
             animations:^{
                 //self.zweetLogoImageView.mt_animationPerspective = -1.0 / 500.0;

                 CGRect r        = self.zweetLogoImageView.frame;
                 r.origin.x      = endX;
                 r.origin.y      = endY;

                 // scale
                 CGFloat h       = startFrame.size.height;
                 CGFloat w       = startFrame.size.width;
                 CGFloat hh      = h * endScale;
                 CGFloat ww      = w * endScale;
                 r.size.height   = hh;
                 r.size.width    = ww;
                 r.origin.y      -= (hh - h) / 2.0;
                 r.origin.x      -= (ww - w) / 2.0;
                 self.zweetLogoImageView.frame= r;

                 // alpha
                 self.zweetLogoImageView.alpha = endAlpha;

                 // rotation
                 CGFloat radians = mt_degreesToRadians(endRotation);
                 self.zweetLogoImageView.layer.transform = CATransform3DMakeRotation(radians, 0, 1, 0);

             } completion:^{
                 [self performSelectorOnMainThread:@selector(resumeLoading) withObject:nil waitUntilDone:YES];
             }];
}