I am creating a layout.I want to set my custom toolbar(Which is another layout) to the top of layout and the FrameLayout
layout
toolbar
FrameLayout
Note, that unlike other viewgroups in android, constraintlayout should have circular dependencies between the child views. Herewith, you should use 0dp instead of 'match_parent' width and constraints for each side of the child view.