Hour 8. Using Android Layouts for Your Google TV App

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

Get Sams Teach Yourself Google TV™ App Development in 24 Hours 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.