How to get the toolbar back in Android Studio? - android-studio

By mistake I removed the toolbar in Android Studio IDE. How can I get it back.
Note: I am not talking about toolbar in android app

If your Main Menu toolbar is hidden you can get it back by pressing Ctrl + Shift + N (or double tap Shift on Android Studio 4.x) and search for the View | Appearance: Main Menu Action. Toggle to ON to enable the menu again:

Select View->
Click on Toolbars

The simple way:
If you have accidentally hidden your Main menubar:
Double tap on Shift on your keyboard.
On the popped up window click on Actions and type mainmenu.
A toggle button labelled " view appearence : Main Menu - OFF" will appear.
Click on toogle OFF to make it ON.
Now, the Main Menu is shown. very simple!

For the version of 3.6.1,
It is actually in View > Appearance > Tool Window Bars.
Make sure it is ticked.

It is frustrating when you accidentally hide toolbars & even when the main menubar is also hidden, it is difficult to get back because the View tab is also hidden after the main menubar.
So what to do?
Press Alt+CTRL+S - this will open all settings.
In settings, that go to keymaps.
Find Main Menu-> View-> Toggle the main menu.
Select it and assign any shortcut you like after clicking the little pencil icon on top.
Close settings and press your shortcuts, - main menu opens.
You can similarity assign to Main Menu-> View-> Toolbar and show toolbar again on Android studio IDE. Alternatively, after the main menu opened, click VIEW-> Toolbar tab.

This's the way easy and simple:
Click on Search Everywhere icon.
Type "Main Menu" (or anything you want to find: status bar, navigation bar, tool bar ...).
Click on Status Button to enable ON mode for it.
Done!!!
Preview:

If you hide your Main menubar accidentally, follow these steps to show
it again
Pic 1:
Pic 2:
In Pic 1: The Main menubar is shown but in Pic 2: the Main menubar is gone.
Step 1: To solve this press Ctrl + Alt + S from your keyboard, the Settings menu will appear. From the left panel select Keymap and from the right panel select Main menu
Step 2: Now Right-click on the Main menu, you will find three options Add Keyboard Shortcut, Add Mouse Shortcut and Add Abbreviation. Select Add Keyboard Shortcut
Keyboard Shortcut dialog box will appear. Select any key (In my case its M)
Now press the OK button, and once again OK to close the Settings dialog box.
Step 3: Now press the shortcut key (In my case its M) and you will see a popup Main menu
Step 4: Click on View -> Appearance -> Main menu
Finally, you will see your Main menu again :)
Step 5:
Remove the shortcut key
To remove the Shortcut Key, press (Ctrl + Alt + S) key -> Keymap -> Main menu
Right-click on the Main menu, Select Remove -> Hit Apply, then OK button

If you're on Linux and the Main menu disappeared after updating AS, and you can't find it in the View | Appearance as suggested in the other answers, then it's probably because of an experimental Linux native menu flag got enabled.
Double tap Shift (or do Ctrl + Shift + A), to get the window to type in what action are you looking for, and type Experimental features. Then find linux.native.menu and uncheck it. Then restart AS.
See here for more info https://www.jetbrains.com/help/idea/linux-native-menu.html#disable-linux-native-menu

Depending on your version of Android Studio, the option was moved:
Older versions:
View > Toolbars
Newer versions:
View > Appearence > Toolbars
I have the version 3.6.1 and for me it is in the second case now.

It is actually in View > Appearance > Tool Window Bars.
Make sure it is ticked.

If you have hidden your Main menu bar:
Follow the below steps:
Click on Main Menu -> View
on View -> Click on Tool Windows
In Tool Windows select the project or if you required any other menu you can add
Now, the Main Menu is shown. very simple!

You can similarity assign to Main Menu-> View-> Toolbar and show toolbar again on Android studio IDE. Alternatively, after the main menu opened, click VIEW-> Toolbar tab. Save this answer.

Related

No task bar in Android Studio

My task bar is gone and I don't know, I asked IntelliJ whether they can help me, but the answer wasn't useful. My Android Studio looks now like in the Screenshot. I also tried to uninstall and reinstall it and tried to change the settings.
Screenshot
When I created a new project, it looked like this:
Screenshot
Please help me.
Here are 4 simple steps for this:
Press Shift double time. It will open up the popped up window.
Under Actions, type main menu.
A toggle button labelled View | appearance: Main Menu - OFF appears.
Hit that toggle button to make it ON.
Voila! your Main Menu toolbar is back. 🎉
You can launch a search using Ctrl+Shift+A shortcut, then type main menu it will show you a menu like this, from View -> Appearance you can show or hide any option

Why my menu bar is not displaying in android studio?

My android studio is not showing the main menu bar where File,Code,Build... options remain.For this I can not open a new project or build an apk.I have to close android studio and then again open it and then I click on Create New Project.Please help me bringing back the menu bar.
If you accidentally hide your main menu bar, double tap on Shift key on keyboard, then select 'Actions' and type 'Main menu'. Click on 'Main menu' that appears in list, you will then see the Main menu in a popup window. Choose View > Appearance > Main menu.

Buttons not visible in the Layout Editor of Android Studio 3.4

Although many tutorials, videos, and books in Internet show the baseline edit. delete constraint and cycle chain mode buttons (x, ab and chainbuttons) below the selected component in the Layout Editor, I can't see them in my updated Android Studio 3.4. How is it possible? I can only do these operations with the context menu.
You can find menu to toggle Baseline from context menu e.g
Activity Design View > Component Tree
Select button2 and right-click to bring up the Context menu on button2
They have updated and move the option to the right click menu
You have to right click your TextView component and show baseline

Android Studio - Add Undo and Redo buttons to main toolbar - 3.2.1 update

After the 3.2.1 update the Undo and Redo buttons disappeared from the Main Toolbar.
I can still access them at the Main Menu, but I can't see them on the Main Toolbar.
How do I add them back? I don't see it as an option. It used to be useful that you could look at the toolbar and see right away if there were any changes but now they are gone.
Right-click on the emtpy space of the toolbar, on the right side, away from the buttons, and select "Customize Menus and Toolbars...".
Now open the "Main Toolbar" folder and click on any item where you want to place the undo or redo item between, then click the "Add After..." button.
Finally open "Main menu" then "Edit" folders, and click on the undo or redo button, then "Ok" and "Ok" again.
Do this once for each button :)

Android Studio upper menu

After updating to High Sierra beta, my upper menu bar disappears. I can't find a way to bring it back.
Here is how it's looking after the update:
You have to install the Java 6 Runtime https://support.apple.com/kb/DL1572
Also duplicate of Menu bar not showing in Android Studio
Right click on the main tool bar, and choose Customize Menus and Toolbars,
expand the main menu and select item then click "add after" button then select an icon for the item, add all items in main menu separately.
The easiest way is to downgrade Android studio.
You can show the upper menu by right clicking on the main tool bar, and choosing Customize Menus and Toolbars, then choose restore all defaults. I hope this answer is helpful.
Edit vmoptions with cmd + shift + a and add this line :
-Dapple.laf.useScreenMenuBar=false
Restart the application.

Resources