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.
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 ...