intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Android (phần 12)

Chia sẻ: Nguyen Kien | Ngày: | Loại File: PDF | Số trang:30

95
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ủ đề:
Lưu

Nội dung Text: Android (phần 12)

ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2