- 浏览: 559835 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (338)
- 已过时文章(留念用) (39)
- Android学习笔记 (30)
- Android开发指引自译 (100)
- Android NDK文档自译 (23)
- Android设计指引自译 (2)
- xp(ペケピー)&linux(理奈、铃)酱~ (4)
- ui酱&歌词自译~ (9)
- lua酱~ (9)
- 自我反省 (1)
- 羽game计划 (1)
- XSL酱 (2)
- java酱 (3)
- 设计的领悟 (58)
- 涂鸦作品(pixiv) (1)
- ruby酱 (2)
- Objective-C编程语言自译 (2)
- Android开发月报 (6)
- objc酱 (2)
- photoshop (3)
- js酱 (6)
- cpp酱 (8)
- antlr酱 (7)
- Lua 5.1参考手册自译 (11)
- 收藏品 (3)
- 待宵草计划 (4)
- 体验版截图 (1)
最新评论
-
naruto60:
太给力了!!!!我这网打不开Intel官网,多亏楼主贴了连接, ...
使用HAXM加速的Android x86模拟器(和一些问题) -
yangyile2011:
谢谢博主,翻译得很好哦
【翻译】(4)片段 -
ggwang:
牙痛的彼岸:痹!
牙痛的彼岸 -
ggwang:
总结得很简练清晰啊,学习了!
ANTLR学习笔记一:概念理解 -
leisurelife1990:
mk sdd
用git下载Android自带app的源代码
【翻译】(74)动画
see
http://developer.android.com/guide/topics/graphics/animation.html
原文见
http://developer.android.com/guide/topics/graphics/animation.html
-------------------------------
Animation
动画
-------------------------------
See also
另见
Property Animation 属性动画
View Animation 视图动画
Drawable Animation 可绘画对象动画
-------------------------------
The Android framework provides two animation systems: property animation (introduced in Android 3.0) and view animation. Both animation systems are viable options, but the property animation system, in general, is the preferred method to use, because it is more flexible and offers more features. In addition to these two systems, you can utilize Drawable animation, which allows you to load drawable resources and display them one frame after another.
Android框架提供两个动画系统:属性动画(在Android 3.0中引入)(注:github上有向后移植版,可以兼容2.1+,见https://github.com/laanwj/android-animation-backport)以及视图动画。两个动画系统都是可行的选择,但通常属性动画系统是首选的使用方法,因为它更灵活而且提供更多特性。在这两个系统之外,你可以利用Drawable动画,它允许你加载可绘画资源并且一帧接一帧地显示它们。
The view animation system provides the capability to only animate View objects, so if you wanted to animate non-View objects, you have to implement your own code to do so. The view animation system is also constrained in the fact that it only exposes a few aspects of a View object to animate, such as the scaling and rotation of a View but not the background color, for instance.
视图动画系统只提供动画化View对象的功能,所以如果你希望动画化非View对象,你不得不实现你自己的代码来做到这点。视图动画系统还被限制这样的事实,它只暴露一个要动画化的View对象的少量方面,诸如一个View的缩放和旋转,但背景颜色之类的则不能。
Another disadvantage of the view animation system is that it only modified where the View was drawn, and not the actual View itself. For instance, if you animated a button to move across the screen, the button draws correctly, but the actual location where you can click the button does not change, so you have to implement your own logic to handle this.
视图动画系统的另一个缺点是它只修改View被绘画在的地方,而不是实际View自身。例如,如果你动画化一个按钮以跨屏幕移动,那么按钮正确地绘画,但你可以点击按钮的实际位置并没有改变,所以你不得不实现你自己的逻辑以处理它。
With the property animation system, these constraints are completely removed, and you can animate any property of any object (Views and non-Views) and the object itself is actually modified. The property animation system is also more robust in the way it carries out animation. At a high level, you assign animators to the properties that you want to animate, such as color, position, or size and can define aspects of the animation such as interpolation and synchronization of multiple animators.
使用属性动画系统,这些限制被完全地移除,并且你可以动画化任意对象(View和非View)的任意属性而对象自身被实际地修改。属性动画系统也通过它解决动画的方式是变得更强壮。在更高的层面上,你赋予动画器到你希望动画化的属性,诸如颜色、位置、或大小,而且可以定义动画的切面诸如多动画器的插值和同步。
The view animation system, however, takes less time to setup and requires less code to write. If view animation accomplishes everything that you need to do, or if your existing code already works the way you want, there is no need to use the property animation system. It also might make sense to use both animation systems for different situations if the use case arises.
然而,视图动画系统花费更少的时间配置并且需要写较少的代码。如果视图动画实现你需要做的每一件事情,或者如果你的现存代码已经如你所愿地工作,那么没有必要使用属性动画系统。对不同的情形使用两种动画系统还可能有意义,如果该用例(注:用例是软件工程术语,指用非技术用语来描述用户的使用场景)出现。
Property Animation
属性动画
Introduced in Android 3.0 (API level 11), the property animation system lets you animate properties of any object, including ones that are not rendered to the screen. The system is extensible and lets you animate properties of custom types as well.
在Android 3.0(API级别11)中引入。属性动画系统让你动画化任意对象的属性,包括那些不被渲染到屏幕的对象。系统是可扩展的,也可以让你动画化自定义类型的属性。
View Animation
视图动画
View Animation is the older system and can only be used for Views. It is relatively easy to setup and offers enough capabilities to meet many application's needs.
视图动画是较旧的系统,只可以被用于View。它相对容易配置并且提供足够的能力来满足许多应用程序的需要。
Drawable Animation
可绘画对象动画
Drawable animation involves displaying Drawable resources one after another, like a roll of film. This method of animation is useful if you want to animate things that are easier to represent with Drawable resources, such as a progression of bitmaps.
可绘画对象动画一个接一个地调用正在显示的Drawable资源,就像一个滚动的胶卷(注:电影)。这种方法的动画是有用的,如果你希望动画化一些东西,它们较容易用Drawable资源呈现,诸如一些连续的位图。
Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.
除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。
Android 4.0 r1 - 08 Mar 2012 0:34
-------------------------------
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
(此页部分内容基于Android开源项目,以及使用根据创作公共2.5来源许可证描述的条款进行修改)
(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:
* ソフトウェア技術ドキュメントを勝手に翻訳
http://www.techdoctranslator.com/android
* Ley's Blog
http://leybreeze.com/blog/
* 农民伯伯
http://www.cnblogs.com/over140/
* Android中文翻译组
http://androidbox.sinaapp.com/
)
发表评论
-
【翻译】(9-补丁2)电话簿提供者
2012-07-18 12:54 2333【翻译】(9-补丁2)电话簿提供者 see h ... -
【翻译】(8-补丁1)Android接口定义语言(AIDL)
2012-07-02 05:55 2851【翻译】(8-补丁1)Andro ... -
【翻译】(0)应用组件
2012-06-30 23:50 789【翻译】(0)应用组件 see http:// ... -
【翻译】(88)传感器
2012-05-21 21:25 1025【翻译】(88)传感器 ... -
【翻译】(87)复制与粘贴
2012-05-20 14:48 1886【翻译】(87)复制与粘贴 see http: ... -
【翻译】(86)音频捕捉
2012-05-16 15:14 1039【翻译】(86)音频捕捉 ... -
【翻译】(85)照相机
2012-05-13 15:09 3727【翻译】(85)照相机 see http:// ... -
【翻译】(84)JetPlayer
2012-04-21 16:24 935【翻译】(84)JetPlayer see h ... -
【翻译】(83)媒体回放
2012-04-21 16:00 1802【翻译】(83)媒体回放 see http:/ ... -
【翻译】(82)多媒体与照相机
2012-04-18 23:05 904【翻译】(82)多媒体与照相机 see htt ... -
【翻译】(23-补丁3)构建无障碍服务
2012-04-18 21:57 1584【翻译】(23-补丁3)构 ... -
【翻译】(23-补丁2)使应用程序无障碍
2012-04-16 13:08 2030【翻译】(23-补丁2)使应用程序无障碍 see ... -
【翻译】(23-补丁1)无障碍
2012-04-11 22:38 856【翻译】(23-补丁1)无 ... -
【翻译】(81)Renderscript之运行时API参考手册
2012-04-11 22:13 1379【翻译】(81)Renderscript之运行时API参 ... -
【翻译】(80)Renderscript之计算
2012-04-09 14:09 1390【翻译】(80)Renderscript之计算 ... -
【翻译】(79)Renderscript之图形
2012-04-08 13:59 2801【翻译】(79)Renderscript之图形 ... -
【翻译】(78)Renderscript
2012-04-04 15:35 1394【翻译】(78)Renderscript see ... -
【翻译】(77)可绘画对象动画
2012-03-18 10:52 666【翻译】(77)可绘画对象动画 see htt ... -
【翻译】(76)视图动画
2012-03-18 10:04 760【翻译】(76)视图动画 see http:/ ... -
【翻译】(75)属性动画
2012-03-17 18:24 2474【翻译】(75)属性动画 see http:/ ...
相关推荐
浅谈国产动画字幕汉英翻译的翻译方法
动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画动画
网页动画素材 飞鱼动画(抖音资料)网页动画素材 飞鱼动画(抖音资料)网页动画素材 飞鱼动画(抖音资料)网页动画素材 飞鱼动画(抖音资料)网页动画素材 飞鱼动画(抖音资料)网页动画素材 飞鱼动画(抖音资料)...
代码经过封装,使用方便,包含多种动画。 类名:AirBubblesAnimation 效果:气泡动画 说明:类似于气泡的弹出动画(根据运用场景设置元素向下对齐,能看出气泡自下向上弹出),弹出之后有来回的缓动效果。 ...
里面包括了大量WPF动画 包括QQ登录界面翻转动画,XYZ轴圆心动画,电脑管家关闭动画,以及各种3D动画
卡罗拉双擎安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉双擎安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉双擎安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉双擎安卓...
卡罗拉安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉安卓导航开机动画bootanimation.zip,分辨率1280x720 卡罗拉安卓导航开机动画...
flash学习示例:补间动画/引导动画/遮罩动画,适合初学flash的同学参考,压缩文件包含三个fla文件,欢迎下载哦!
支持MAX2014版本,能制作简单的破碎效果。并且直接给碎块绑上骨骼,变成骨骼动画,使得导出时不需要导出顶点动画资源,容量会小很多。
动画精灵动画精灵动画精灵动画精灵动画精灵
jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画jquery动画
讲述骨骼动画的资料很多,但大部分都是针对DX8或DX9的SkinnedMesh进行讲解。我觉得对于骨骼动画初学者增加了不必要的负担,还没有理解骨骼动画的实质就已被DX复杂的架构搞得晕头转向了。这篇文章把注意力集中在骨骼...
Android帧动画和补间动画总结,帧动画和补间动画代码实现。
进站动画进站动画进站动画
沙雕动画网吧场景-沙雕动画素材资源文件
java动画java动画java动画java动画java动画java动画java动画java动画java动画
对fbx中的关键帧动画进行播放控制, Osg中使用的思路:1、用osg的fbx插件读取fbx到osg模型 2、解构得到的osg模型,将模型分解成一个个的关键帧(osgAnimation::KeyFrame), 3、重组关键帧得到需要的动画 3.1 重组...
抖音直播间赠送礼物飘屏动画; 赠送金币动画; 赠送礼物动画; 可单独显示; 可混合显示; 可设置多个礼物集合自动轮播显示; 可自定义设置显示动画和时长; 可自定义UI界面; 可自定义任何代码实现; 源码开源; 可...