android - is it possible to write a surface view without creating thread? -


i want write surface view without creating thread. possible create surfaceview ,without calling thread. if possible, please provide me simple example.

your question doesn't entirely make sense me, i'll try answer think you're asking.

yes, can draw on surfaceview without creating dedicated thread. not recommended approach; should rendering off main thread app doesn't become slow respond, it's not absolute requirement.

i don't know if counts "simple" example, grafika's "multi-surface test" draws on 3 overlapping surfaceviews ui thread. these static images, drawn once, there's not need separate thread. if start animation on 1 of surfaces (with "bounce" button) kicks off new thread, because it's easier manage way.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -