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
Press Alt + V on your keyboard to open the View menu. From the View drop-down menu, select Toolbars. Choose the Toolbars you want to enable and click OK.
This is going to be in res/menu/main_menu . Right click the res folder and choose New > Android Resource File. Type main_menu for the File name. Choose Menu for the Resource type.
Windows - Press F11 (or Fn + F11 ). Mac - Hover your mouse at the top of the screen, then click the green circle in the top-left corner of the screen when it appears.
If you're using the latest version of appcompat-v7 (21.0. 3 or higher), you can use R. drawable. abc_ic_ab_back_mtrl_am_alpha for back arrow drawable, which is included in support library.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With