Android ApiDemos示范解析(129):Views->Layout Animation->4. Randomize

Android ApiDemos示例解析(129):Views->Layout Animation->4. Randomize

animationOrder: 枚举Layout中子View的顺序,可以为normal (正序),reverse(倒序),random(随机顺序)。上例为倒序显示ListView 中例表项。本例使用随机顺序显示GridView的图标项。

ayout_random_fade.xml 定义如下:

<layoutAnimation xmlns:android=”http://schemas.android.com/apk/res/android”
android:delay=”0.5″
android:animationOrder=”random”
android:animation=”@anim/fade” />

Android ApiDemos示范解析(129):Views->Layout Animation->4. Randomize

1楼leihengxin6小时前
顶一下。