The ConstraintLayout component was introduced with Android Studio 2.3. It makes layouts more dynamic, and by using it you can frequently reduce the number of layout layers and improve performance.
- [Instructor] In Android Studio 2.3,…new applications built with Android Studio's templates…use the constraint layout to lay out activities…and other components.…You can see this in some of the layout files.…For example, this layout file, content_main.xml,…has a constraint layout as its root.…It only contains a few objects, a text view and two buttons.…But you can create very complex layouts…with constraint layout…without creating a lot of layers in your layout hierarchy.…
I'm going to describe how to convert an existing layout…to use constraint layout,…and I'll do this with a dialogue layout…that I created in a previous tip.…This class, EditTextDialog uses this layout,…dialog_edit_text.xml.…And it uses a relative layout as its root.…I'm going to start by converting the dialog…to use constraint layout…and then show you some adjustments you might want to make.…I'll do the conversion in design mode,…and I'll go to the component tree window,…and I'll right-click on the root element,…RelativeLayout, and choose the option…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.