You can use the CoordinatorLayout.Behavior to create dependencies between views. You can anchor a View to another View by:
using the layout_anchor attribute.
creating a custom Behavior and implementing the layoutDependsOn method returning true.
For example, in order to create a Behavior for m...