Constraint Layout in Android Project| Part 12| Explained with example constraint layout in Android

preview_player
Показать описание
Android ConstraintLayout is used to define a layout by assigning constraints for every child view/widget relative to other views present.

A ConstraintLayout is similar to a RelativeLayout, but with more power. The aim of ConstraintLayout is to improve the performance of the applications by removing the nested views with a flat and flexible design.

A view inside the ConstraintLayout has handles(or anchor points) on each side which are used to assign the constraints.

Advantages of Constraint Layouts:
1. One great advantage of the ConstraintLayout is that you can perform animations on your ConstraintLayout views with very little code.
2. You can build your complete layout with simple drag-and-drop on the Android Studio design editor.
3. You can control what happens to a group of widgets through a single line of code.
4. Constraint Layout improve performance over other layout

#CodeCarnation #AndroidStudio #AndroidApplication #App #Java
Рекомендации по теме