Chapter    5

Layouts and Views

The Android platform provides a comprehensive UI framework for mobile applications to provide easy-to-use and consistent user interfaces. This chapter covers the supported static and dynamic layouts, user interface components for both input and output, and the Fragment API (application programming interface) to develop modular and reusable user interface parts.

Layouts

On the Android platform, the visual structure of the application’s user interface is defined through the layouts. Each layout type is a subclass of the ViewGroup class. The layout can contain individual View and also other ViewGroup elements. As a ViewGroup flavor, the layout is responsible for providing the necessary logic to position and draw its ...

Get Android Quick APIs Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.