开发者

Using view with separate thread than UI thread.

开发者 https://www.devze.com 2023-01-28 19:56 出处:网络
I have my own view which i draw a few bitmaps in the onDraw() function but this slows down getting touch ev开发者_运维知识库ents(miss some of them) that is why i want to separate drawing Bitmaps\' thr

I have my own view which i draw a few bitmaps in the onDraw() function but this slows down getting touch ev开发者_运维知识库ents(miss some of them) that is why i want to separate drawing Bitmaps' thread and getting touch events' thread(UI Thread) but i don't know how because they both seems to must be in the UI thread.


You need to go look at the sample applications that google provides as part of the SDK. They give detailed examples of how to do stuff like this.

I would start with LunarLander.

0

精彩评论

暂无评论...
验证码 换一张
取 消