《Pro Android Graphics》读书笔记之第四节
Android Procedural Animation: : XML, Concepts and Optimization
Procedural Animation Concepts: Tweens and Interpolators
Procedural Animation Data Values: Ranges and Pivot Point
范围和中心点
Procedural Animation Transforms: Rotate, Scale, Translate
scale:One of them involves size
rotation:involves orientation (which direction that something is facing)
translation:involves movement
Procedural Animation Compositing: Alpha Blending
Procedural Animation Timing: Using Duration and Offsets
Procedural Animation Loops: RepeatCount and RepeatMode
repeatCount interger(loop forever use infinite(-1))
RepeatMode:restart (1)
reverse (2)
The <set> Tag: Using XML to Group Procedural Animation
android.view.animation
rule of thumb is to apply your transformational parameters locally
Procedural Animation vs. Frame Animation: The Trade-Off
Frame Animation
memory intensive(须要很多其它内存):Displaying the image from memory onto the View is fairly straightforward and does not require any complex calculations, so all processing involves moving each frame’s image asset from memory over to display screen.
Procedural animation
tends to be more processing intensive(须要很多其它计算)
Creating a Procedural Animation Definition Using XML
Animation pagAni = AnimationUtils.loadAnimation(this, R.anim.pag_anim);
(view)pag.startAnimation(pagAni);
Using Set to Create a More Complex Procedural Animation
Rotation Transformation: Going a Bit Too Far with FX
Tweaking Transform Values: The Ease of Adjusting XML
《Pro Android Graphics》读书笔记之第四节的更多相关文章
- 《android开发艺术探索》读书笔记(十四)--JNI和NDK编程
接上篇<android开发艺术探索>读书笔记(十三)--综合技术 No1: Java JNI--Java Native Interface(java本地接口),它是为了方便java调用C. ...
- android内部培训视频_第四节(1)_异步网络操作
第四节(1):异步网络操作 一.结合asyncTask下载网络图片 1.定义下载类,继承自asyncTask,参数分别为:String(url地址),Integer(刻度,本例没有用到),BitMa ...
- 《Pro Android Graphics》读书笔记之第三节
Android Frame Animation: XML, Concepts and Optimization Frame Animation Concepts: Cels, Framerate, a ...
- 《Pro Android Graphics》读书笔记之第六节
Android UI Layouts: Graphics Design Using the ViewGroup Class Android ViewGroup Superclass: A Founda ...
- 《Pro Android Graphics》读书笔记之第二节
Android Digital Video: Formats, Concepts and Optimization Android Digital Video Formats: MPEG4 H.264 ...
- 《Android源代码设计模式解析与实战》读书笔记(十四)
第十四章.迭代器模式 迭代器模式,又叫做游标模式.是行为型设计模式之中的一个.我们知道对容器对象的訪问必定会涉及遍历算法.我们能够将遍历的方法封装在容器中,或者不提供遍历方法,让使用容器的人自己去实现 ...
- 《Pro Android Graphics》读第三季度票据
Android Frame Animation: XML, Concepts and Optimization Frame Animation Concepts: Cels, Framerate, a ...
- $《第一行代码:Android》读书笔记——第2章 Activity
(一)创建活动 1.创建活动类 创建没有Activity的项目,发现src文件夹是空的,手动创建一个包com.jyj.demo1,在包中添加一个名为MainActivity的class,该MainAc ...
- $《第一行代码:Android》读书笔记——第1章 Android系统
(一)Android系统架构 1.Linux内核层:各种底层驱动,如显示驱动.音频驱动.电源管理等. 2.系统运行库层:各种库支持,如3D绘图.浏览器内核.数据库等. 3.应用框架层:各种API,各种 ...
随机推荐
- 【XCode7+iOS9】http网路连接请求、MKPinAnnotationView自定义图片和BitCode相关错误--备用
更新了iOS9和XCode7,之后,Swift变成了2.0,有了新的语法习惯,iOS也加强了安全方面的限制.我们原本的项目就会出现不少问题.先来看我之前的项目中出现的3个错误吧和相关的解决办法吧. 1 ...
- Painting The Wall 期望DP Codeforces 398_B
B. Painting The Wall time limit per test 1 second memory limit per test 256 megabytes input standard ...
- python邮件收发SAMPLE
#!/usr/bin/env python # -*- encoding: utf-8 -*- import os, socket from time import localtime, strfti ...
- ANDROID_MARS学习笔记_S04_002_用AsyncTask实现异步操作
一.简介 二.代码1.xml(1)activity_main.xml <?xml version="1.0" encoding="utf-8"?> ...
- (转载)JS事件监听 JS:attachEvent和addEventListener使用方法
(转载)http://www.chhua.com/web-note146 attachEvent和addEventListener使用方法 Js代码 <html> <head> ...
- HDU 5950 Recursive sequence 【递推+矩阵快速幂】 (2016ACM/ICPC亚洲区沈阳站)
Recursive sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Other ...
- win8下光驱消失
导入这个注册表后重启,总算能读了..reg add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v ...
- 【转】qtp-learn
1.计算器的例子(手动添加,将结果写到日志文件中) SystemUtil.Run "C:\WINDOWS\system32\calc.exe",""," ...
- [洛谷U871]building
题目来源:http://www.luogu.org/problem/show?pid=U871# [题目背景 Background] WOW是BLIZZARD公司开发的一款网络游戏,游戏的背景是处在一 ...
- 2D游戏编程4—Windows事件
windows消息传来的参数分解: Message: WM_ACTIVATE Parameterization: fActive = LOWORD(wParam); // act ...