java - Android开发surfaceview绘制图形无法显示
阿神
阿神 2017-04-18 09:34:40
0
1
391
阿神
阿神

闭关修行中......

reply all(1)
左手右手慢动作

You draw graphics in a new thread, and unlockAndPost is in the main thread, so the execution order of the above code is lockCanvas -> unlockAndPost -> new Thread().run().

I don’t know what the purpose of your sleep 1000 is. The draw process must be on the main thread, otherwise it is meaningless

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!