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
Solution: I'm assuming that you have your toolbar as another xml file, something like this:
toolbar.xml
then using ConstraintLayout use it with FrameLayout like this:
ConstraintLayout
Hope this helps. Please comment if you have any issues with it.