android 2D animation 开发小结
2010-08-20 02:02:00 来源:WEB开发网This property lets you persist the cache
in memory after its initial usage.
Persisting the cache consumes more memory
but may prevent frequent garbage collection is the cache is created over and over again. By default the persistence is set to scrolling.
Must be one or more (separated by '|') of the following constant values.
Constant Value Description
none 0x0 The drawing cache is not persisted after use.
animation 0x1 The drawing cache is persisted after a layout animation.
scrolling 0x2 The drawing cache is persisted after a scroll.
all 0x3 The drawing cache is always persisted.
-->
< ListView android:id="@+id/list_view_id"
android:persistentDrawingCache="animation|scrolling"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layoutAnimation="@anim/list_layout_controller"
>
< /ListView>
< /LinearLayout>
关于view animation在下篇文章中写出。
更多精彩
赞助商链接