Using view with separate thread than UI thread.
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.
精彩评论