首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

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

2012-09-01 
Android ApiDemos示例解析(129):Views-Layout Animation-4. RandomizeanimationOrder: 枚举Layout中子Vi

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小时前
顶一下。

热点排行