有没有对初学者有用的 Android 动画教程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12229901/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 10:05:51  来源:igfitidea点击:

Is there any useful Android Animation Tutorial for beginners?

androidanimationtransition

提问by aman.nepid

Is there any good android animation tutorials to do in views or the transitions? A complete tutorial or guide may help alot.

在视图或过渡中是否有任何好的 android 动画教程?完整的教程或指南可能会有很大帮助。

回答by iTurki

There are basically two type of animations:

基本上有两种类型的动画:

  • View Animation:

    With View Animation you can perform a series of simple transformations (position, size, rotation, and transparency) on the contents of a View object

  • Drawable Animation:

    Drawable animation lets you load a series of Drawable resources one after another to create an animation. This is a traditional animation in the sense that it is created with a sequence of different images, played in order, like a roll of film

  • 查看动画

    使用 View Animation,您可以对 View 对象的内容执行一系列简单的转换(位置、大小、旋转和透明度)

  • 可绘制动画

    Drawable 动画让你一个接一个地加载一系列 Drawable 资源来创建动画。这是一种传统动画,它是用一系列不同的图像创建的,按顺序播放,就像一卷胶卷

The above two links have enough examples to get you started.

上面两个链接有足够的例子来帮助你入门。