TLDR : How to change following files color in android studio
The other day I was playing with Color Themes , and Material Theme plugin to see which colors and themes would look better for android studio . I finally realized the native color and theme were best for me .
Befor changing color I exported all my setting for backup . So finally after realizing I imported back my settings . Every thing changed back to normal except these git status color . I tried to change color via setting but could not find the property .
How can I change these color back to native color ?
Ok I finally found the solution
It's in Version Control > File Status Colors
Related
I want to build my own Android Automotive OS from the source code. It works but I have few issues. One of them is "black on dark gray" color theme. For any reason, elements of the status bar looks as on the picture.
I can use ADB and call cmd uimode night yes to change the system into the night mode (for any reason, config_defaultNightMode doesn't work) and then it looks much better.
However, I cannot enforce this color in the code. I suppose I should change some foreground color (frameworks/base/core/res/res/color/ ?) but I can't find the correct one. I've even tried to put the cmd uimode command to init.rd scripts (I know it's an ugly solution) but it also doesn't work. Do you have any idea how to make it more visible by default?
There was the same issue for the keyboard but I've found the correct property (com.android.inputmethod.latin.car.KeyboardView:app:keyTextColorPrimary="?android:attr/textColorPrimary") and replaced it with a custom hex color. I've tried to replace the textColorPrimary with a custom one but with no luck.
I change the theme in my android studio and it changes in all places, except in the background and in the code style, does anyone know how to change in these places, below I left a print to see that the code style is pretty ugly.
Follow Below steps -
Go to File and click on Settings.
Under the Appearance & Behaviour -> Appearance, find Theme.
Choose the Default theme from the drop-down and click on Apply and then Ok.
Here you can see the background and color scheme for all three themes.
After update Android studio, the color of text in the following situation changes automatically...
I just cannot find the option in the Setting>Editor>Colors&Fronts.
Does anyone know where to set the text color back to white?
Any response will be helpful!
Android Studio have two themes built in, Default and Dracula.
Setting>Editor>Colors & Fonts > Choose Default, and if you want more style you can get at Color Themes.
I'm trying new sample project with Android Material Design on Android Studio 1.4.
I created a project with an Empty Activity :
Everything works fine. However, from the beginning, we can notice that there are warnings at the Theme Editor:
1) Warning in ColorPrimary:
Not enough contrast with not enable textColorPrimary and default
textColorPrimary
2) Warning in android:textColorPrimary:
Not enough contrast with colorPrimary
My question is simple: How to resolve warnings?
I don't have Android Studio 1.4, but I can click the color box besides the warning to see the contrast problem on Android Studio 2.0.
Choose another color from the color gradient panel until the warning disappears.
If you want to show the same color i.e. #color/colorPrimary (#FF3F51B5) as in your case, then just change the Theme Parent from AppCompact Light (current) to AppCompact Dark
This will solve your problem.
In case if you want to choose some other color you can always twist around theme parent from dark to light or light to dark.
If you still did not get your choice result then the only option is to choose lighter color so that it can match contrast value with the theme.
Hope this helps.
Thank You!
the 2 cross in my case, one the colorprimary says it doesn't have enough contrast with textcolorprimary, and vise versa.
And i think it says the amount of contrast between the background, and the text, is not enough to be easily visible to the user, and the one who wrote the error, just didn't knew how to express it...
I'm new to Android development and I just installed Android Studio version 1.2.1.1. I created a project, HelloWorld, and chose the default blank activity, Darcula theme, and default API. Straight out of the box, without having written any code or touched anything, I get this message:
"Rendering Problems
Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style 'textViewStyle' in current theme (4 similar errors not shown)."
I uninstalled and reinstalled Android Studio but I still get this error so I'm not sure what else I should do. It says "use the theme combo box... or fix the theme style references" and I'm new to Android Studio so I have no idea where the box is or how to change the reference.
Simply click on the Refresh icon at the review pane:
Android gives you the option to define your own style format, which the default project you made did. It created a style named 'textViewStyle'.
If you look at the text view instead of the design view (you can switch by pressing the tab at the lower left in the part where you get the error that it can't render) you will see that the textView or the app itself contains a line android:theme="#style/textViewStyle".
You can either remove this line, or track down the error in the styles.xml file in the res/values folder. This is the file that defines the style for the app.
If this doesn't help you it could be that the style is defined in your AndroidManifest.xml file, look at the tag, it will contain a line saying android:theme="#android:style/textViewStyle", change that to android:theme="#android:style/Theme.DeviceDefault" and you should be good to go.
More info on custom themes: http://developer.android.com/guide/topics/ui/themes.html
Since you are a beginner, more on general Android development:
http://developer.android.com
Make sure to select the correct theme from the menu in the preview panel.
If you set the layout file to be FullScreen in the manifest but select something like NoActionBar theme in the preview panel, you will also get this error.
Go to manifest file, check the theme you are using there and pick the same in the Design view of your xml file.
Rebooting Android Studio did the trick for me. I couldn't find the "Refresh" button in the accepted answer for some reason.
Click on "Design" tab
On the right pannel, search for the objet "text" that contains something like "#string/hello_world"
Remove this value from the field
There's no more error.