My Toolbar and EditText look like this:
Toolbar
EditText
I tried
Just add the EditText to the XML for your ToolBar. That is probably the easiest way.
ToolBar