How do you save multiple tool window layouts in Android Studio? - android-studio

I arranged my Android Studio IDE tool windows layout to fit 2 screens in a dual monitor setup and saved it as the default. I would also like to save another layout for single screen setup.
Question: Is it possible to save multiple layout configuration for tool windows in Android Studio. If so how?
Thanks,
George

Go to menu window > Store current layout as default

A bit late to the party, but there is a newer plugin, that works much better imho.
You can define 4 layouts, it can switch layouts immediately, it also (re-)stores the floating state of each panel and so on:
https://plugins.jetbrains.com/plugin/13005-window-layout-manager

There is an IntelliJ IDEA plugin preserve-layout-plugin that allows you to that. It's available in the plugin repository, just search for preserve.
By default, you need to restart the IDE or open another project in order to load the layout but the following works as well: you import the layout, you store it as default, and then you restore the default layout.

The following method helped me.
1) Run Android Studio as administrator.
2) Now, arrange the tabs as you want.
3) Go to Window->Store current layout as default.

This is something I missed when I started Android development especially after using multiple layout in Unity Editor before this.
However, I found this plugin - "Window Layout Manager" Link which you can also find and install via Android Studio plugins marketplace.
Allows you to arrange different windows/components like terminal, logcat, project explorer etc and save it with a name.

Related

Preview is hidden and does not show

I want to make android app. I have installed androis studio and now i have problem with it. The preview window is hidden
I have tried to fix this problem by updating everything that is possible, but after updating the window is not shown
Image of android studio
You can see that i dont see screen where is running code
Android studio does not show me errors and
API is 22
You are using a bad version of constraint layout I would use the constraint layout from the androidx Library
androidx.constraintlayout.widget.ConstraintLayout I think is the tag
You can try to invalidate Caches and restart like this:
File -> Invalidate Caches/Restart...
After you have done it try to reopen android studio and check your preview.
Another solution that can help you is to switch from the Text tab to the Design tab, this is also the recommended option for working with ConstraintLayout + you can see your preview in your design tab.
And if all of that didn't work you can always reinstall android studio again, this may be the less recommended option but it will most likely solve your problem.

Easy way to include third-party Views in Android Studio?

When working with ExoPlayer in Android Studio, to add a PlayerView to my application's layout I always have to click on the "Text" tab and dive into the XML.
Is there a way to add such third-party views to the palette so I can drag and drop a PlayerView directly onto my layout?
Update
Here's a screenshot of my Android Studio IDE. There's no "Project" tab or other clear means of adding to the palette
Palette has "Project" tab, hope this helps
I believe I may have figured out the source of my issue. As I mentioned in the original question, I'm working with ExoPlayer.
First, a View will only show up in the design palette if it's defined either in your project or in a JAR file
Next, ExoPlayer does not distribute a JAR file
When using jcenter to pull in ExoPlayer (as instructed by their installation guide) it will not build a JAR and so Android Studio is unaware of any custom views

Android Studio 2.2.2 preview and design not showing properly

I have recently installed Android Studio 2.2.2. But in the IDE the preview and design window for xml not showing complete mobile-like appearance that I used to view in previous version, rather it is showing only the mobile screen with rulers around. How can I see full featured preview/design? Pls advice.
I was also looking for this, But its new functionally it will look like this by default. only screen and blueprints, No mobile.
https://developer.android.com/studio/write/layout-editor.html

Change VS2012 Color Theme programmatically

I'm looking for a resource or example code on how to change the color theme in VS2012.
I'd like to do this dependant on the value of an AppSetting entry in the app.config.
Ideally when when the app isn't running and the theme would change once the file is edited.
However, I'd appreciate anything towards that goal.
At first, you can use free Visual Studio 2012 Color Theme Editor, which you can download here:
https://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05
This will add “Theme” menu in your VS.
Also you can change your icons: here http://vsip.codeplex.com/ you can download Visual Studio Icon Patcher (But VS2010 should be also installed for this to work).
But, if you want to implement your own code to change themes, the best way is making own extensions which look like VSPackage. You can read recommendations how to do this here: https://msdn.microsoft.com/ru-ru/library/bb165437.aspx
And in other articles at this site you can find more information about implementing your own ideas in the VS.

No "Android DDMS" in Tools->Android menu?

In IDEA I can open DDMS from inside it via Tools->Android menu. However in Androdi Studio there is no such entry.
How can I open DDMS from Android Studio? Is this feature ported from IDEA to Android Studio?
DDMS is apparently still there, in sdk/tools/ddms (can be started from terminal).
Tools>Android>Android Device Monitor apparently contains a DDMS.
They look different, but the latter seems to have at least everything provided by the former, which seems to lack a File Explorer? Presumably the former is a fall-back until the latter is completely stable?
Disclaimer: just starting to explore this.

Resources