O'Reilly logo

Android Design Patterns and Best Practice by Kyle Mew

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 4. Layout Patterns

In the previous chapters, we have looked at the most important patterns used for creating objects and at some of the most used material components. To bring these together, we need to consider the overall layouts an application might need. This allows us to plan our app in greater detail as well as introducing the interesting challenge of designing an app for different-sized screens and orientations. Android makes developing for a variety of screen sizes and shapes very simple and intuitive, and with a minimum of extra coding. We will then conclude by exploring and creating a strategy pattern.

In this chapter, you will learn how to:

  • Use relative and linear layouts
  • Apply gravity and weight
  • Scale weights with weightSum
  • Use ...

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