What You’ll Learn in This Hour:
• What are layouts and how are they used
• The relationship between code and layouts
• The effects of changing layout properties
• How to use padding and margins in your UI
In this hour, you will learn how widgets are added to the screen with layouts. Layouts are part of the presentation layer in Android and are used in phones, tablets, and on Google TV. The job of the layout is to position widgets, like Buttons or TextFields, at the proper position on the screen. The same layout can be used on a phone or on Google TV, but there are ways to optimize the viewing experience for each device.
A number of layouts are available. They include a LinearLayout, FrameLayout, ...