Xem mẫu

HO CHI MINH UNIVERSITY OF INDUSTRY LẬP TRÌNH DI ĐỘNG - ANDROID HO CHI MINH UNIVERSITY OF INDUSTRY 1. XML layout – XML container 2. Types of event programming 3. Toast & Alert Dialog 4. Common controls 5. Advanced controls 6. Custom layout 7. Webkit 8. Intent & Intent filters 9. Touch & Multi touch 10. Multi language in Android 2 HO CHI MINH UNIVERSITY OF INDUSTRY 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 3 HO CHI MINH UNIVERSITY OF INDUSTRY 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. 4 HO CHI MINH UNIVERSITY OF INDUSTRY 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. 5 ... - tailieumienphi.vn
nguon tai.lieu . vn