Android Studio change floating doc window to pinned by default - android

When I start Android Studio, settings related to the tooltip / floating doc window seem to revert back to normal. Specifically, I like the right hand side of my IDE to show doc info. However, I don't see settings for the default behavior of this window, just a toggle for turning it on or off.
This related question shows a screenshot of the doc window I speak of, but my window shows full size unlike the poster here: Change default Quick Doc / Documentation hover size in Android Studio
What I like to do when opening any Android Studio project for the day is:
Hover over something to get the Documentation window to appear (covering the editor window almost entirely)
Go to the settings in that popup and UNcheck Floating, while leaving Pinned checked
Resize the width of the documentation pane which is now docked on the right like I want
This has been old for quite some time, repeating this step, sometimes being startled when I hover and the whole window pops up in my face. Whether global defaults or per project defaults are available, I'd like to know.
Can I set this default behavior and if so how? I am running Ubuntu or some flavor of linux on the dev PCs, so I am not interested in Windows-only solutions.

To change floating window to pinned by default edit the file:
.AndroidStudio2.3\config\options\window.manager.xml
with : <window_info id="Structure" active="false" anchor="right" auto_hide="true" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
Hope thi helps!

Related

Can't re-open Component Tree on Android Studio

I just downloaded Android Studio, and while I was trying to familiarize myself with the setup, I accidentally closed the Component Tree. I'm at very beginner level, and in all of the results I've come across, I didn't understand or it didn't work for me. How do I find the Component Tree again?
Edit: Here's a screenshot:
If you mean the "Component Tree" of the XML preview, this can be collapsed & expanded alike all other sidebars; it might be at the bottom-left of the XML preview window, where "Palette" is. It just sometimes requires double-clicking, in order to expand that panel. I tried, but I didn't manage to hide or remove it; if it is really missing, the Android Studio installation might be broken (needs reinstall).
Try anyone of these ways to restore hidden or misplaced component tree window-
Try Windows > Editor tabs > Close all.
then open your activity.xml again in your design mode. (Worked for me)
press shift F12, it should restore your window to default view.(or just go to Windows > Restore default layout).
hover over the square icon in the bottom left corner and click on component tree.

Android Studio 3.0 - Logcat window can not show filter input control

I can not type a text filter in the logcat input text control on Android Studio 3.0.1, because it is too small.
My screen is big enough. I did an event switch to fullscreen but this did not solve the problem.
See the screenshot below.
Has anyone seen this problem? How do you solve it?
Try clicking on the setting (cog-wheel icon) inside the logcat window and select the windowed or the floating modes, and then try to stretch the window size as long as you can
This issue is regarding the resolution of screen size specially causing in windows platforms or desktop with small resolution.
(For windows users)
-If you have a slider toolbar set in left or right side set it to bottom.
-Check for resolution size that suits your desktop better.
-Update the windows graphic driver(Important) if you don;t see one in device manager better install it.
Note: I had the same issues for the slider toolbar(refer 1st point) set to bottom and now it works fine.
use CTRL+F in logcat to find or filter logcat. then a new search bar comes below to that bar you can filter there.
Actually the problem is with the device name, which is too long and due to this it squeezes the Logcat search. So to the solution I got for this name issue is to change the device name (whether its Genymotion or AVD). So to change your device name follow below steps :
For AVD : Go to Tools --> Android --> AVD Manager --> Select your device and then change the device name to shorter one.
For Genymotion : Open you VirtualBox --> Select your device and then Click on Settings --> Change the name to shorter one.
And other option is Right click on Logcat tab and then enable Floating mode. Then just resize the floating window so that the Logcat search can expand.
Android Studio 3.1-beta in the canary channel has solved this issue.

Unable to create a ToggleButton in Eclipse IDE for android

In my android XML Graphical Layout, it can not display my ToggleButton. I get some errors (see below). I have checked all other components in the Palette window and the only component that fails to load is ToggleButton. The problem is not project specific. It persists in every project I create.
Note: I have tried dragging it directly as well as using XML code to generate it. But it fails either way and the error is same.
Error :
Exception raised during rendering: -1
Exception details are logged in Window > Show View > Error Log
The graphics preview in the layout editor may not be accurate:
Different corner sizes are not supported in Path.addRoundRect. (Ignore for this session)
Path.isConvex is not supported. (Ignore for this session)
I have referred this question and tried to edit it but the edit was rejected. So please do not redirect me there.
I am using API 21. All the build tools are installed.
I had the same problem and solved by changing my target device screen to any of the xhdpi OR xxhdpi devices.
I'm sorry but I'm not able to post images yet, all you have to do is go to the dropdown menu just above the graphical layout -> General OR Google -> Select the xhdpi/xxhdpi target device you prefer.
I'm also new to android so I'm not able to explain why this is happening, I can only guess it's a compatibility issue or something. I'll try finding out more..
In the meantime I hope this will turn useful for you as well :-)
Problem is in your background drawable. Corners of your rectangle can be rounded all only by a same amount. Just like your error message says. You must set them all to same amount.
Perhaps it is the display theme so ensure that the theme you select matches the android:theme in your activity tag in AndroidManifest.xml. In Android Studio (sorry not eclipse as per question) in the top bar of the preview panel, I had to click the current theme name (which was Light) which brings up the Select Theme panel and then choose my theme under Project Themes (as I had a custom theme - you location may vary).

Accessing Android Studio properties window?

I have recently started using Android Studio and cannot work out how to access the properties window.
The following screenshot was taken from Google and shows exactly what I'm trying to access denoted by the red rectangle around the properties window.
Can anyone please tell me how I can access this?
Switch to design view. Click "Design" tab at bottom-left work area.
In the new Android Studio Version 3.1.2, the name of the Propierties Windows is "Attributes".
Look at this picture:
Attributes basic view
And, if you want to see the complete attributes, simply click on "View all attributes":
Attributes full view
How to restore windows?:
restore windows
I had the same issue than found that the properties window was always there but I had to drag it out with my mouse. Just go to the far right vertical bar in Design mode then drag to the right when your mouse turns into horizontal arrows pointing away from each other. Hope this helps!
You can just click on the design tab on your screen (at the left bottom corner below your code text window) and just click on anything whose property you want to change
make sure you are in the '.xml' file
I accidentally deleted the properties side bar and Window-->restore deafult layout helped.
Follow the doc.
Instead of editing your view properties in XML, you can do so from the Properties window (on the right side of the Layout Editor). This window is available only when the design editor is open, so be sure you've selected the Design tab at the bottom of the window.
When you select a view, the Properties window shows the following, as indicated in figure 5:
View inspector with controls for width/height style, margins, and bias (available only for views in a ConstraintLayout). For more information, see Build a Responsive UI with ConstraintLayout.
This happens all the time, to my opinion Android team should see as an improvement opportunity, here is the solution, click on the settings (gear symbol) on the right make sure that the attached side is set to None. also -See screen shot-> 1,
You have three ways to see the fields, design mode, split mode and code mode. THE ONLY ONE THAT shows the Attribute bar is on the SPLIT MODE, click on the Attribute see screenshot->
if that does not work, you can go to Windows -> Restore default Layout
if that still does not work you can do File -> Manage IDE Settings -> Restore Default Settings.
if that still does not work you can go in file explorer and delete the .android studio folder in C\users[your user].Androidstudio#.#
Hope this helps someone out there...

Android Studio - Where can I see callstack while debugging an android app?

While on a break point, how do I see the call stack to find the callee method/function?
Seems like there is an UI-Bug in the Android Studio (1.x, 2.x and 3.x).
For me the "Frames/Threads" Panel was completely hidden behind the toolbar, so I had to change the size from the "variable" panel by dragging its left border to reveal the "Frames/Threads".
[I have to admit, that #Greg added this picture after reviewing my answer!]
At the bottom panel you should have "5: Debug". Click on it and select "Debugger -> Threads"
You may need to find the "Threads" icon on the far right, or even click the "Restore Layout" button on the left to restore this window.

Categories

Resources