O'Reilly logo

Android Studio Cookbook by Mike van Drongelen

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

Chapter 5. Size Does Matter

This chapter is about building apps that will be running on a wide variety of devices: phones, phablets, tablets, and TVs. We will connect to YouTube to get some data and videos to display.

Size and context actually do matter. We could of course scale up everything but that does not really make it a better app. Tablets offer more space than phones, and when it comes to user interaction, TV differs from a smart phone. How do we make the layout scale and look smooth on each device? How do we find the right approach for each type of device?

In this chapter, you will learn from the following recipes:

  • Size and context
  • Phone, phablet, and tablet layouts
  • Media playback
  • TV and media centre

Size and context

Devices such as phones, phablets, ...

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