WEB开发网
开发学院手机开发Android 开发 android 2D animation 开发小结 阅读

android 2D animation 开发小结

 2010-08-20 02:02:00 来源:WEB开发网   
核心提示:This property lets you persist the cachein memory after its initial usage.Persisting the cache consumes more memorybut may prevent frequent garbage collection i

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在下篇文章中写出。

上一页  1 2 3 4 

Tags:android animation 开发

编辑录入:coldstar [复制链接] [打 印]
赞助商链接