The version of Android studio in this article is Android Studio 2.2, the operating system is Windows, and if there are different operations, there may be version differences.
Adding some commonly used buttons in the toolbar, such as setting up, DDMS, is helpful to improve our development efficiency, for example:
After setting the menu bar and toolbar,
Commonly used DDMS are not found in the new version of the toolbar, and of course we can also open through tools----Android Device Monitor;
Settings can be from File-->settings Open it.
But this method is much more troublesome than selecting directly from the toolbar.
Next, we'll start adding to the toolbar.
1.File-Settings
2. Select Appearance & Behavior-Menus and Toolbars in Setting, select Main Toolbar in the options on the right
3. Then select the location where you want to place the button (you want to put it in the back of the file or folder icon that you already have), and follow the placement of the previous version, I put the settings, the DDMS icon before the Help button, so I left-click to select Android.maintoolbarsdkgroup, then click on the right Add after ... Button
Let's introduce the function of the right button before adding
4. According to the path mentioned above Ddms, in the pop-up Choose Actions to ADD, select: All Actions---Main menu-->tools----Android--and Android De Vice Monitor, finally click OK.
At this point, the Ddms button is added to the Android Studio toolbar, but the icon is the Android robot by default.
If you want to customize the icon, you can modify the above set icon, select the icon you want to use
DDMS and help do not belong to the same class, can separate it, of course. We can add a split line between them, very simple, select the icon first, then select the Add Separator on the right, and finally click Ok. The default split line is added to the back of the selection selection item.
At this point, the DDMS button has been added!!!
Settings button Add, refer to 4th step Select all Actions--Main menu-->file--and Settings, click OK, at this time I feel that said a bit too verbose.
Android Studio Toolbar Add common buttons