android studio: way to make validation markers thicker? - android-studio

In Android Studio, is there a way to change the thickness of the error validation markers in the right gutter? They are very thin and, for me, it is difficult to discern the colors. They tend to all look greyish.
the result is I'm having trouble seeing which are warnings and which are errors.

I don't know if you can "change the thickness" since it is representation of the entire file - it is more like a "heat map" than a navigation tool. Making the window taller would make them "thicker" and beyond that you have display and navigation options, so that you don't need to see individual indicators.
To change what is displayed (which warnings and errors are highlighted), go to Analyze -> Configure Current File Analysis then in the pop-up click on "Configure Inspections". Here you can select which warnings and errors are indicated. You can create profiles, etc. to your liking.
For navigation, you should be able to navigate to errors only and skip the warnings, using F2 (or shift-F2) on Mac anyway.

Related

Android Studio creates this kind of overlay on top of everything else showing part of the code. How to disable?

https://i.imgur.com/M4pgbiw.png[![Android_Studio_overlay][1]][1]
I sometimes get this randomly on top of everything when using Android Studio. These lines show randomly and the only way I have to remove it is by restarting the whole IDE.
Sometimes it's 3 lines, sometimes 6. Sometimes I can double-click on it and it takes me to that part of the code, sometimes it doesn't react at all if I click on it.
Right now, even if I minimize the Android Studio Window, this "overlay" is on top of everything else, even the Desktop.
I've looked online and the only thing that looks like it is the "code lens" option that appears when hovering the scrolling bar, but that's not it.
Does anyone know why does that happen and how to disable it?
follow the steps :
Editor -> General -> Appearance
find : Show Code Lens on scrollbar hover, and disable it
Second option would be : - If you right click on the scroll bar you will see checked the option "show code lens". Uncheck and you are good to go.

Android studio just downloaded and gives an error

I have a problem with android studio. I just downloaded and when I try to add something the app for example a button or text I get the following error:
This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX). These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.
Well I haven't actually done anything... Download it and instantly error...
After research I found that in the Layouts tab there is an option called ConstraintLayout. I double clicked on it and then I added the button and a warning appeared named hardcoded text and it says:
Hardcoded string "TextView", should use #string resource Hardcoding text attributes directly in layout files is bad for several reasons: * When creating configuration variations (for example for landscape or portrait)you have to repeat the actual text (and keep it up to date when making changes) * The application cannot be translated to other languages by just adding new translations for existing string resources. There are quickfixes to automatically extract this hardcoded string into a resource lookup.
There is a suggested fix but it wont change anything...
Anyone know what to do or it is just my luck...…………...
Just go to Design Tab and on Layout right-click on the layout you've and select Constraint layout --> Infer Constraints.
If you don't find this tab Infer Constraints then you've another android version so just go to Design Tab and click on the button you added you'll find a toolbar appeared you'll find in it an icon for a Magic Stick just hover on it you will find it's Infer Constraints click on it.

The scheme of Android Studio displays color wrong

The code, that I typed, displays color completely different from the sample code. And I have no idea how to make it displays as the sample one. This bug appears on every scheme, including Default one.
This was caused by the 'Power save mode' is turned on. We just have access to menu File > Power Save Mode to turn it off then code scheme will be displayed as normal.

What causes control text to get cut off?

My VB6 application is having a layout problem on certain end user PCs, but so far we are unable to identify what is causing this.
Normal layout:
Broken layout:
The text on the left are the captions of the radio buttons. The text in the upper right is a label.
I am familiar with two different settings in Windows Control Panel which can affect text size, and initially we suspected this was the cause. In Windows 10, they are:
Control Panel >
Appearance and Personalization >
Display >
(1) "Use these display settings" > "Customize your display"
or
(2) "Set a custom scaling level"
(Terminology was different in earlier Windows versions but I think the features were the same?)
However upon testing these settings with our app neither reproduces the problem.
What else might be causing the text layout issue shown in the image?
This appears to be caused by a Windows bug.
The description & fix as mentioned in the source website are as follows:
if you have a high resolution screen at install time, Win7 will install a larger font set (125%) by default. If you then choose go back to the standard font size (100%), Windows will keep some of the large fonts even though everything else is adjusted for standard fonts, causing programs that use these fonts to break because the text will not always fit inside the GUI.
By editing the Windows registry you can get the original, intended fonts back:
Open the start menu and type regedit and then press Enter.
Locate the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
Find the value MS Sans Serif 8,10,12,14,18,24
Change from SSERIFF.FON to SSERIFE.FON
Find MS Serif 8,10,12,14,18,24
Change from SERIFF.FON to SERIFE.FON
Finally find Courier 10,12,15
Change from COURF.FON to COURE.FON
Restart your system in order for the changes to take effect!
The exact font names may vary depending on locale settings.
I was able to create the problem scenario as described here on Windows 10, and that reproduced the problem with our VB6 app. I think that confirms this as the fix.
A Microsoft blog post seems to be the authoritative original source of this information.

Visual Studio 2015 Layout: Error List and Output

Problem: Having read this article, the initial intention was to dock the tabbed Error List and Output Windows to the IDE status bar, but won't accommodate as it seems this method is not implemented in the IDE interface.
Alternatively try raising the bottom edge of the IDE and move the Error List and Output below the IDE Window. Almost perfect except it squinches the right-docked Solution and Property Windows a little.
Now tabbed and grouped documents can be resized if they aren't docked to the top frame, but then the group becomes another Window outside the IDE (Win 8.11).
Questions: Is there a way to raise the bottom borders of the IDE docked document group to fit the Error List and Output?
That way it's not necessary to keep switching Window configs or hiding Error List & Output as we wish for a clear view of all content in a web page or document.
Or, as there's idle real estate either to the right of the IDE menu items or adjacent to the Notifications/Feedback/Quick Launch/ area is it possible to place buttons binding Window layouts to Ctrl+Alt+{num}?
Also reviving a question for previous VS version as a corollary, is there some way to bring back the old SDI feel of VB where the white space in the IDE is replaced by the desktop or another underlying window?
Helpful answers appreciated as always.

Resources