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” />

 
 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *