Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Bài giảng Lập trình cho thiết bị di động: Chương 2 - Trần Duy Thanh
Đang chuẩn bị liên kết để tải về tài liệu:
Bài giảng Lập trình cho thiết bị di động: Chương 2 - Trần Duy Thanh
Ngọc Ngạn
121
220
pptx
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Bài giảng Lập trình cho thiết bị di động: Chương 2 trình bày các nội dung sau: XML layout – XML container, Types of event programming, toast & Alert Dialog, common controls, advanced controls, multi language in Android,. | 1 5. Advanced controls 4. Common controls 3. Toast & Alert Dialog 2. Types of event programming 1. XML layout – XML container 6. Custom layout 7. Webkit 8. Intent & Intent filters 9. Touch & Multi touch 10. Multi language in Android 1 2 1. XML layout – XML container 1.1 Android Layouts 1.2 View class 1.3 Sample UI components 1.4 XML layout and attaching 1.5 UI Hierarchy 1.6 Common layouts 2 3 1.1 Android Layouts Each element in the XML Layout is either a View or ViewGroup object Displaying the Application‘s View paints the screen by walking the View tree by asking each component to draw itself in a pre-order traversal way. Each component draws itself and then asks each of its children to do the same. 3 4 1.2 View class The View class represents the basic building block for user interface components. a rectangular area on the screen responsible for drawing and event handling. is the base class for widgets The ViewGroup subclass is the base class for layouts invisible containers that hold other Views and define inside views layout properties. 4 5 1.3 Sample UI components 5 6 1.4 XML layout and attaching What is an XML layout? An XML-based layout is a specification of the various UI components (widgets) and the relationships to each other –and to their containers –all written I Android considers XML-based layouts to be resources, and as such layout files are stored in the res/layout directory inside your Android project XML format. You could create Layout XML files using UI tools such as: Eclipse ADT UI Designer (getting better but still ) DroidDraw (to be phased out soon???) Asset Studio (probably the best option, not available yet) 6 7 1.4 XML layout and attaching You must “connect” the XML elements with equivalent objects in your Java activity. This allows you to manipulate the UI with code. setContentView(R.layout.main); Demo: Button is content view Attaching Layouts to java code 7 8 1.4 XML layout and attaching Demo 8 9 1.5 UI Hierarchy In . | 1 5. Advanced controls 4. Common controls 3. Toast & Alert Dialog 2. Types of event programming 1. XML layout – XML container 6. Custom layout 7. Webkit 8. Intent & Intent filters 9. Touch & Multi touch 10. Multi language in Android 1 2 1. XML layout – XML container 1.1 Android Layouts 1.2 View class 1.3 Sample UI components 1.4 XML layout and attaching 1.5 UI Hierarchy 1.6 Common layouts 2 3 1.1 Android Layouts Each element in the XML Layout is either a View or ViewGroup object Displaying the Application‘s View paints the screen by walking the View tree by asking each component to draw itself in a pre-order traversal way. Each component draws itself and then asks each of its children to do the same. 3 4 1.2 View class The View class represents the basic building block for user interface components. a rectangular area on the screen responsible for drawing and event handling. is the base class for widgets The ViewGroup subclass is the base class for layouts invisible .
TÀI LIỆU LIÊN QUAN
Bài giảng Phát triển ứng dụng cho các thiết bị di động: Phần 1
Bài giảng Lập trình cho thiết bị di động: Chương 0 - Trần Duy Thanh
Bài giảng Phát triển ứng dụng cho thiết bị di động - Hồ Thị Thảo Trang
Bài giảng Lập trình cho thiết bị di động: Chương 1 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 2 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 3 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 4 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 5 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 6 - Trần Duy Thanh
Bài giảng Lập trình cho thiết bị di động: Chương 7 - Trần Duy Thanh
crossorigin="anonymous">
Đã 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.