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” />
本文介绍了一种使用随机顺序显示网格视图图标的布局动画方法。通过定义layoutAnimation标签并设置android:animationOrder为random属性,实现了GridView中图标项的随机顺序显示效果。同时,设置了0.5秒的延迟和淡入动画。

2374

被折叠的 条评论
为什么被折叠?



