For the More Curious: New Developments in ConstraintLayout

ConstraintLayout has additional capabilities to help arrange its child views. In this chapter you positioned views by constraining them to the parent as well as to other, sibling views. ConstraintLayout also includes helper views, such as Guidelines, that simplify arranging views on the screen.

Guidelines do not display on the app screen; they are just a tool to help you position views the way you need. There are both horizontal and vertical guidelines, and they can be placed at a specific location on the screen using dp values or by setting them to be a percentage of the screen. Other views can be constrained to the guideline to ensure that they appear at the same location, ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.