WEB开发网
开发学院手机开发Android 开发 android 2D animation 开发小结 阅读

android 2D animation 开发小结

 2010-08-20 02:02:00 来源:WEB开发网   
核心提示:point value, such as "1.2".May be a fractional value,which is a floating point numberappended with either % or %p,such as "14.5%".The % suff

point value, such as "1.2".

May be a fractional value,

which is a floating point number

appended with either % or %p,

such as "14.5%".

The % suffix always means

a percentage of the base size;

the optional %p suffix provides

a size relative to

some parent container.

*****

android:animationOrder:

The order in which the

animations will be started.

Must be one of the following constant values.

Constant Value Description

normal 0 Animations are started in the natural order.

reverse 1 Animations are started in the reverse order.

random 2 Animations are started randomly.

****

android:animation

Animation to use on each child.

-->

< layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"

android:delay="30%"

android:animationOrder="reverse"

##注意此处如果想引用其他的animation,替换即可

android:animation="@anim/scale"

/>

在布局文件中进行引用:

< LinearLayout

android:id="@+id/LinearLayout01"

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:orientation="vertical"

xmlns:android="http://schemas.android.com/apk/res/android">

< !-- Elipse's ADT plugin will automatically

recompile the package taking this change

into account

***************

android:persistentDrawCache【位于android.view.ViewGroup中】

Defines the persistence of

the drawing cache.

The drawing cache might be enabled

by a ViewGroup for all its

children in specific

situations

(for instance during a scrolling.)

上一页  1 2 3 4  下一页

Tags:android animation 开发

编辑录入:coldstar [复制链接] [打 印]
赞助商链接