SurfaceView flashes black on load

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

    I facing the same issue but thank for this answer

    There is a less messy approach, just put getWindow().setFormat(PixelFormat.TRANSLUCENT); in the host activity's onCreate() callback before calling setContentView().

提交回复
热议问题