Official Description: The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.
CoordinatorLayout is designed to help coordination among widgets for
The classic example is showing a
Snackbar or similar sort of content
at the bottom of the screen. It may be fine that the
some of your widgets, but other widgets you might prefer “move out of the
way” while the
Snackbar is on the screen. For example, you might want to
move a FAB such that the
Snackbar does not overlap it.
CoordinatorLayout behaves much like
You tend to use it in conjunction with something else, such as a
for the actual “layout” of the widgets in terms of sizing and positioning.
In practice, many developers use a
CoordinatorLayout when documentation
for some library suggests to use it. If neither you nor library-supplied
widgets are doing anything special to take advantage of
capabilites, it does nothing for you on its own.
CoordinatorLayout originated with the Design Support Library.
Many articles from 2017 and earlier will reference
android.support.design.widget.CoordinatorLayout. Much of what was written
CoordinatorLayout should still be relevant for the AndroidX
- Android Design — Coordinator Layout #1: An Introduction (2018-01-20)
- Android CoordinatorLayout Examples – Toolbar, Collapsing Toolbar, Tabs, ViewPager (2017-11-19)
- Using CoordinatorLayout in Android apps (2016-07-19)
- Latest Stable: 1.1.0
- Latest Release Candidate: 1.1.0-rc01
- Latest Beta: 1.1.0-beta01
- Latest Alpha: 1.1.0-alpha01