Design + Code an Android App from Scratch
This video shows how to add a Toolbar in XML to the main screen. A Toolbar is a generalisation of action bars for use within application layouts. While an action bar is traditionally part of an Activity's opaque window decor controlled by the framework, a Toolbar may be placed at any arbitrary level of nesting within a view hierarchy. An application may choose to designate a Toolbar as the action bar for an Activity using the setActionBar() method. Use the Toolbar from the support package which is capable of running on the older devices as well.