24. An Android ConstraintSet Tutorial

The previous chapter introduced the basic concepts of creating and modifying user interface layouts in Java code using the ConstraintLayout and ConstraintSet classes. This chapter will take these concepts and put them into practice through the creation of an example layout created entirely in Java code and without using the Android Studio Layout Editor tool.

24.1 Creating the Example Project in Android Studio

Launch Android Studio and select the Start a new Android Studio project option from the quick start menu in the welcome screen and, within the resulting new project dialog, choose the Empty Activity template before clicking on the Next button.

Enter JavaLayout into the Name field and specify com.ebookfrenzy. ...

Get Android Studio 4.0 Development Essentials - Java Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.