TAILIEUCHUNG - professional android application development phần 3

Tập tin này đăng nhập lần đăng nhập thất bại và thành công, logoff, lưu hành động, và hành động đối phó với các cài đặt cơ sở dữ liệu và chính sách Trong ví dụ sau đây, bạn sẽ có thêm một số chức năng menu đơn giản đến các ứng dụng Danh sách To-Do bạn bắt đầu Chương 2 và tiếp tục cải thiện trước đó trong chương này. | Chapter 3 Creating Applications and Activities The following list gives the available qualifiers you can use to customize your resource files Language Using the lowercase two-letter ISO 639-1 language code . en Region A lowercase r followed by the uppercase two-letter ISO 3166-1-alpha-2 language code . rUS rGB Screen Orientation One of port portrait land landscape or square square Screen Pixel Density Pixel density in dots per inch dpi . 92dpi 108dpi Touchscreen Type One of notouch stylus or finger Keyboard Availability Either of keysexposed or keyshidden Keyboard Input Type One of nokeys qwerty or 12key UI Navigation Type One of notouch dpad trackball or wheel Screen Resolution Screen resolution in pixels with the largest dimension first . 32 0x24 0 You can specify multiple qualifiers for any resource type separating each qualifier with a hyphen. Any combination is supported however they must be used in the order given in the list above and no more than one value can be used per qualifier. The following example shows valid and invalid directory names for alternative drawable resources. Valid drawable-en-rUS drawable-en-keyshidden drawable-land-notouch-nokeys-320x240 Invalid drawable-rUS-en out of order drawable-rUS-rUK multiple values for a single qualifier When Android retrieves a resource at run time it will find the best match from the available alternatives. Starting with a list of all the folders in which the required value exists it then selects the one with the greatest number of matching qualifiers. If two folders are an equal match the tiebreaker will be based on the order of the matched qualifiers in the above list. Runtime Configuration Changes Android supports runtime changes to the language location and hardware by terminating and restarting each application and reloading the resource values. This default behavior isn t always convenient or desirable particularly as some configuration changes like screen orientation and keyboard visibility

TỪ KHÓA LIÊN QUAN
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.