Android (phần 12)
95
lượt xem 16
download
lượt xem 16
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Building Rich User Interfaces ❘ 517 Introducing the Surface View Under normal circumstances, your applications’ Views are all drawn on the same GUI thread. This main application thread is also used for all user interaction (such as button clicks or text entry). In Chapter 9, you learned how to move blocking processes onto background threads. Unfortunately, you can’t do this with the onDraw method of a View, as modifying a GUI element from a background thread is explicitly disallowed. When you need to update the View’s UI rapidly, or the rendering code blocks the GUI thread for too long, the SurfaceView class is...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
CÓ THỂ BẠN MUỐN DOWNLOAD