TAILIEUCHUNG - Lập trình Androi part 52

Các droid Motorola có 240-dpi, 3,7-inch, 480-by-854 pixel màn hình (một màn hình hiển thị FWVGA). Để mô phỏng một màn hình droid, dựa trên số pixel, chiếm một phần ba của một 19 - inch, 1280-by-1024 màn hình LCD, bởi vì màn hình LCD của mật độ thấp hơn nhiều so với các-droid khoảng 96 dpi. Vì vậy, khi bạn khởi giả lập Android của bạn cho một màn hình hiển thị FWVGA như thế của droid, bạn sẽ nhận được một cửa sổ giả lập lớn | CHAPTER 36 Handling Multiple Screen Sizes values of 1dpi mdpi and hdpi respectively . Then test the value of the string resource at runtime. This is inelegant but should work. Ain t Nothing Like the Real Thing The Android emulators will help you test your application on different screen sizes. However that will get you only so far because mobile device LCDs have different characteristics than your desktop or notebook such as the following Mobile device LCDs may have a much higher density than that of your development machine. A mouse allows for much more precise touchscreen input than does an actual fingertip. Where possible you are going to need to either use the emulator in new and exciting ways or try to get your hands on actual devices with alternative screen resolutions. Density Differs The Motorola DROID has a 240-dpi 480-by-854 pixel screen an FWVGA display . To emulate a DROID screen based on pixel count takes up one third of a 19-inch 1280-by-1024 LCD monitor because the LCD monitor s density is much lower than that of the DROID around 96 dpi. So when you fire up your Android emulator for an FWVGA display like that of the DROID you will get a massive emulator window. This is still perfectly fine for determining the overall look of your application in an FWVGA environment. Regardless of density widgets will still align the same sizes will have the same relationships . widget A might be twice as tall as widget B and that will be true regardless of density and so on. However these issues may come up Things that might appear to be a suitable size when viewed on a 19-inch LCD may be entirely too small on a mobile device screen of the same resolution. Things that you can easily click with a mouse in the emulator may be much too small to pick out on a physically smaller and denser screen when used with a finger. Adjusting the Density By default the emulator will keep the pixel count accurate at the expense of density which is why you get the really .

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.