TAILIEUCHUNG - Lập trình Androi part 51

Đối với năm đầu tiên hay như vậy kể từ Android được phát hành, tất cả các sản xuất các thiết bị Android có độ phân giải màn hình giống nhau (HVGA, 320 x 480) và kích thước (khoảng 3,5 inch, hoặc 9 cm). Bắt đầu vào mùa thu năm 2009, mặc dù, các thiết bị đã được đến với các kích thước màn hình rộng rãi và độ phân giải khác nhau, từ nhỏ QVGA (240 by 320), màn hình lớn hơn để WVGA (480 của 800), màn hình | Chapter Handling Multiple Screen Sizes For the first year or so since Android was released all production Android devices had the same screen resolution HVGA 320 by 480 and size around inches or 9 centimeters . Starting in the fall of 2009 though devices have been arriving with widely disparate screen sizes and resolutions from tiny QVGA 240 by 320 screens to much larger WVGA 480 by 800 screens. Of course users will be expecting your application to be functional on all of these screens and perhaps take advantage of larger screen sizes to add greater value. To that end Android added new capabilities to help better support these different screen sizes and resolutions. The Android documentation has extensive coverage of the mechanics of handling multiple screen sizes http guide practices . You are encouraged to read that information along with this chapter to get the best understanding of how to cope with and perhaps take advantage of multiple screen sizes. After a number of sections discussing the screen size options and theory the chapter wraps with an in-depth look at making a fairly simple application that handles multiple screen sizes well. Taking the Default Let s suppose that you start off by totally ignoring the issue of screen sizes and resolutions. What happens If your application is compiled for Android or lower Android will assume your application was designed to look good on the classic screen size and resolution. If your application is installed on a device with a larger screen Android automatically will run your application in compatibility mode scaling everything based on the actual screen size. 331 CHAPTER 36 Handling Multiple Screen Sizes For example suppose you have a 24-pixel square PNG file and Android installs and runs your application on a device with the standard physical size but a WVGA resolution a so-called high-density screen . Android might scale your PNG file to be 36 pixels so it will .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.