Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个适用于 Android 2.2 的绘图应用程序。但是,当我将它升级到 3.2 并在 3.2 设备中运行时,我的自定义 SurfaceView 消失了(但仍然接受触摸事件)。奇怪的是,如果我保持迷你应用托盘打开,它会重新出现。
经过一段时间的尝试,罪魁祸首是setDrawingCacheEnabled(true); .
在我评论它之后,它就像一个魅力。