O'Reilly logo

Sams Teach Yourself Google TV™ App Development in 24 Hours by Carmen Delessio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required