SurfaceView flashes black on load

后端 未结 8 1613
忘了有多久
忘了有多久 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:59

    You need to make sure that onSurfaceChanged() doesn't return until you have completely drawn and posted the contents of the SurfaceView's Surface.

提交回复
热议问题