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
Use 0dp that is match_contraint in ConstraintLayout.
0dp
Like android:layout_height="0dp"
android:layout_height="0dp"