How to customize Toolbar in Android Studio?
Right-click on the open space of the toolbar (your first image) and select Customize Menus and Toolbars... . Now open the Main Toolbar folder, select any item and then click the Add After... button (on the right). Find what you want to add from the list of items available (you can also choose an icon) and click OK .
How to set title in ActionBar in android?
Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main. xml. In the above code, we have taken text view to show status bar tittle.