ConstraintLayout vs Coordinator layout?

Swapnil Mobile App Developer picture Swapnil Mobile App Developer · Dec 2, 2016 · Viewed 31.5k times · Source

What to implement: ConstraintLayout or CoordinatorLayout for proper material design in android ?

Answer

Dmitry Sitnikov picture Dmitry Sitnikov · Dec 20, 2016

CoordinatorLayout is intended to be the top-level layout for activity to manage the Behaviors e.g. interactions and animations.

ConstraintLayout's main goal is to provide a convenient way to create a flat layout with multiple children (much more powerful RelativeLayout).

So the CoordinatorLayout is to manage the complex behavior (especially animations) of your activity's components, and ConstraintLayout for components proper placement (especially list items).