to layout views, but once you grasp the concepts, XML is probably easier. • One gotcha, is that the visual editor will add “editor” constraints to your XML, so the layout looks fine in the IDE but awful on a device. • I prefer to use the XML view in Android Studio to define the constraints, but use the preview window side-by-side to check the visual output. • Don’t use match_parent for ANY view, instead use 0dp, which is now know as “match constraints”.