Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter introduced basic Android UI concepts for supporting multiple device configurations, notifications, and options menus. Along the way, you learned that
• Android uses a combination of folder naming conventions, image scaling, and density-independent dimensions to create flexible layouts for different device configurations.
• Touch, focus, and key events are available, but you’ll probably want to use an event listener to handle common user actions such as tapping on the screen.
• Notifications are the primary method of notifying your users, but dialogs and toasts can be used when you need more or less urgency.
• Menus allow you to add functionality to your app without cluttering the layout, but you should take care not to hide essential actions from the user.