Mobile App Dev Units 1 To 3 Skyward
Mobile App Dev Units 1 To 3 Skyward
Units Notes
UNIT 1: Introduction to Mobile Technologies and Key Services
1. Components of a Screen
• View – Basic building block of UI (TextView, Button).
• ViewGroup – Container that holds other Views (e.g., LinearLayout).
• Layouts – Define UI structure (Linear, Relative, Constraint, Frame, Table, Scroll).
4. Action Bar
• Used to provide user actions, branding, and navigation.
• Can add menu items, titles, dropdowns.
5. UI Programmatically
• UI can be created using Java/Kotlin code instead of XML.
• Useful for dynamic layout generation.
6. UI Notifications
• Listeners detect events on UI (e.g., click, text change).
• Use `setOnClickListener` for buttons, etc.
UNIT 3: Designing User Interface
1. Designing by Declaration
• Create UI using XML declarations rather than code.
• Easier to visualize, maintain.
2. Opening Screen
• Initial screen using layouts, images, branding.
• Designed using XML or code.
3. Alternate Resources
• Use `res/` folders with qualifiers (e.g., `layout-sw600dp`).
• Helps support multiple screen sizes.
6. Debugging
• Use Logcat (Log.d/e/i) for logging messages.
• Use Debugger to set breakpoints, inspect variables.