【发布时间】:2014-08-19 10:06:52
【问题描述】:
我有一个线程,我会一一得到一些Bitmap。然后,每当我得到一个新的Bitmap 时,我都需要更新我的SurfaceView,它位于主线程中。我该怎么做?
【问题讨论】:
-
检查这个问题stackoverflow.com/questions/24890900/… 看看它是否有帮助
-
activity.runOnUiThread(new Runnable() { public void run() { updateMySurfaceView(bitmap);}}); -
@stealthjong 如果你能把它作为一个完整的答案,我会接受它。
标签: android bitmap surfaceview surfaceholder