TAILIEUCHUNG - Lập trình Androi part 48

Phần lớn tập trung đã được trên Eclipse plug-in, để hội nhập phát triển Android với IDE. nhấn mạnh Trung học đã được đặt vào các plug-in của tương đương để sử dụng trong IDE khác hoặc không có một IDE, như adb để giao tiếp với một giả lập chạy. | Chapter Development Tools The Android SDK is more than a library of Java classes and API calls. It also includes a number of tools to assist in application development. Much of the focus has been on the Eclipse plug-in to integrate Android development with that IDE. Secondary emphasis has been placed on the plug-in s equivalents for use in other IDEs or without an IDE such as adb for communicating with a running emulator. This chapter will cover other tools beyond those two groups. Hierarchical Management Android comes with a Hierarchy Viewer tool designed to help you visualize your layouts as they are seen in a running activity in a running emulator. So for example you can determine how much space a certain widget is taking up or try to find where a widget that does not appear on the screen is hiding. To use Hierarchy Viewer you first need to fire up your emulator install your application launch your activity and navigate to spot you wish to examine. Note that you cannot use Hierarchy Viewer with a production Android device . T-Mobile G1 . For illustration purposes we ll use the ReadWrite demo application introduced back in Chapter 23 as shown in Figure 35-1. You can launch Hierarchy Viewer via the hierarchyviewer program found in the tools directory in your Android SDK installation. This brings up the main Hierarchy Viewer window as shown in Figure 35-2. 315 316 CHAPTER 35 Development Tools Figure 35-1. ReadWrite demo application Figure 35-2. Hierarchy Viewer main window 317 The list on the left shows the various emulators you have opened. The number after the hyphen should line up with the number in parentheses in your emulator s title bar. When you click an emulator the list of windows available for examination appears on the right as shown in Figure 35-3. Figure 35-3. Hierarchy Viewer list of available windows Notice how there are many other windows besides our open activity including the Launcher window . the home screen the Keyguard window . the .

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.