I have seen in Google's Inbox App, composing a new email, in the toolbar instead of the back button (an arrow) it has a "close" button (see picture).
How can I achieve this?
to acheive this.
You can create your own close icon or get from material design icon set on github. Also add this to make close function as back arrow.