Android drawing cache

前端 未结 2 894
后悔当初
后悔当初 2020-12-10 03:53

Please explain how does the drawing cache work in Android. I\'m implementing a custom View subclass. I want my drawing to be cached by the system. In the View constructor, I

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 04:16

    There's a hard limit on drawing cache size, available via the ViewConfiguration class.. My view is larger than allowed for caching.

    FYI, the sources of the View class are available via the SDK Manager for some (not all) Android versions.

提交回复
热议问题