How can you keep the Structure window always displayed in Android Studio 3.5.1? - android-studio

I'm sure that I open the Structure window in my Android Studio 3.5.1 project, you can see Image 1, but sometimes Android Studio 3.5.1 hide the Structure window automatically.
I hope to keep the Structure window displayed. How can I do?
Image 1

According to the docs you just need to choose Dock Pinned as View Mode of the Tool Window:
You can make a tool window stay open even if your focus is somewhere else, for example, in the editor or other tool window. To achieve that, use the Dock pinned mode when you select your viewing mode.
Here are the steps to change it:
On the title bar of a tool window, click the Show Options Menu icon, from the list of options, select View Mode and the actual mode option.
Right-click a tool window or a title bar and from the list of options, select View Mode and the actual mode option.

Related

Editor window loses focus on shortcut view change

In Android studio, while having a .xml file (layout) open in editor window, there are two modes available: Design and Text. In Mac the short-cut for going back and forth in these views are said to be Control + Shift and Left/Right. However once you press one of these combination the editor window will lose the focus and in order to go back, you have to click on the editor window.
How can one resolve that without the extra click?

Undo or Edit Windows in Intellij Android Studio

I accidentally clicked a key from my laptop that I do not remember and my Android Studio menu window changed.
I want to have it to be the default window view which is
I searched for a way to undo it or reverse it but could not find anything.
If this is a duplicate, please point me to the thread.
The second image posted in your question shows the toolbar and the navigation bar, in order to make these visible use the following menu items:
View > Toolbar
View > Navigation Bar

Show all tabs in Android Studio

Is there a way of showing all source code tabs in Android Studio one one horizontal line (in the tab bar) and scroll through them?
When there are too many source code tabs open in Android Studio, some of them are moved to the drop down list at the top right corner of the code edit window. The tabs that are moved to this drop down list are not shown in the tab bar any more.
The tabs in the tab bar can be scrolled with the mouse wheel, but only the ones that have not been moved to the drop down list.
Is there a way to remove the drop down list and keep all tabs in the tab bar?
Not sure if this feature was introduced in later versions of studio (than at the time of which this question was asked) but now you have option to show tabs in multiple rows. You can do so by
Windows -> Editor Tabs -> Tabs placement -> Show Tabs in single row
You can uncheck above which is checked by default. Snapshot below -
In android Studio 4.0.1 you can find tabs configuration in:
Window->Editor Tabs->Configure Editor Tabs...
After, uncheck "Show tabs in one row" checkbox if it is selected.
The size of the tab bar is fixed and there are only fixed number of tabs that can fit inside that limited area.So, one way to quickly switch between the open tabs is to use the SWITCHER tool of Android Studio.
Press control + tab in MAC (don't know the shortcut for windows) and it will bring all the classes and other files which are currently open and you can efficiently switch between them without even touching your mouse or touchpad.
For Linux you can do similar to MAC

Android Studio: Create a second Windows window

I am getting familiar with Android Studio and now prefer it over Eclipse. However I find the window handling of Eclipse more efficient and flexible.
Is there any way to open a second window for the same project (like you can if you have separate projects)? Basically the "New Window" function of Eclipse.
Is there any way to store different window layouts and switch quickly between them (like the perspective of Eclipse)
I am developing on a Notebook, so space is limited. I rather switch with Alt+Tab between IDE windows than resizing 5 docked windows.
Opening a separate window (Qn #1)
This is possible. For an existing window tab, click and drag the tab outside of the window area of Android Studio. This is easier if the Window is in a restored state. So:
Ensure that there's some desktop area that's not covered by Android. This could be by ensuring the Android Studio window is not maximized (as you'd do on your notebook), or by having a dual-monitor setup.
Bring the window to be 'floated' to be the active tab
Drag the window outside of the Android Studio window area, and release mouse.
The window is now floating. To make it tabbed again, just drag it back to be where it was (beside other tabs).
Alt+Tab navigates between floating windows and the main IDE window.
Floating tool windows
Tool window tabs can be dragged in the same way:
... such that they float like this:
Window layouts (Qn #2)
It appears that there's only the option of a 'Default' layout, and after changing this (e.g. pinning tool windows), the option to revert to a previously saved 'Default' layout.
To save a layout, select 'Window' -> 'Save Current Layout as Default'. Now after re-arranging any tool window layouts, the saved layout can be restored via 'Window' -> 'Restore Default Layout'
Tool windows such as '1. Project', '2. Favorites', 'TODO', 'Terminal' etc. can be dragged to be in different border areas of the application. It's the arrangement of these tool windows that is affected by the layout feature.

How re-enable design palette in Android Studio

I recently made the switch to Android Studio as my default IDE for Android development. When designing my UI I normally use the palette in the design view to assist in arranging the widget on the preview screen.Recently something weird happened, It just disappeared and I can't seem to re-enable it. Normally I would see the little Palette button on the side but now its gone. When I open another project I see the palette but not show this current project I'm working on.
When I open another project in Android Studio I see the palette tab.
I've just figured this out! If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.
try the Design/Text tabs in the lower left of the layout window
The palette can be shrunk to 0 width. This can be expanded by hovering next to the left edge of the design window, and finding the right-most expand position.
If you have only the designer and the properties showing and the Properties is on the right, you can get the palette back by switching to a left or right view.
Right click on the .xml file tab. Select "split vertically". This will open another Design that shows the palette again.
Android Studio 2.3.3, and the answer I was looking for:
Window -> Restore Default Layout (Shift+F12)
First Close All The Tabs Then Open res->layout->activity_main.xml
you will able to see design tab at activity_main.xml
Try to switch between Design/Text tabs at the bottom left of the editor.
You must have something in the layout resource highlighted. I also had to compile without an error.
My solution was traversing
src->main->res-layout->content_main.xml
then open content_main.xml
You have to be in the 'Design' tab (as opposed to the 'Text' tab) at the bottom of the middle window (the one that shows the phone).

Resources