SurfaceView flashes black on load

后端 未结 8 1592
忘了有多久
忘了有多久 2020-11-28 02:59

I have a drawing app that takes about 2-5 seconds to load the drawing for complicated drawings (done via an AsyncTask). For a better user experience, during thi

8条回答
  •  感情败类
    2020-11-28 03:47

    " the canvas available in onDraw() does not seem to draw to the SurfaceView" - Are you sure that you do not create the second (or third...) instance of the Surface View? And some of them could be black and be shown for a second. I don't see the code here, so, I can't tell surely, but if it were in my application, I would check for this error at first.

提交回复
热议问题