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.
Related
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...
Is there a way to replicate the color changing ability provided by QKSMS .
It allows a user to select a color and then changes the app color and everything to that color.This is all done dynamically the moment the user chooses a specific color.
You can try this cool online tool: http://android-holo-colors.com
This enables you to create many themes for app widgets with your preferred color. You can then change your app theme by saving values for your theme in SharesPreferences or something similar and apply them in onCreate of each activity you have in your app. You can also create the themes easily in styles.xml. For each view, it has its own style with its own attributes so you will need to learn how to edit the theme of each view you want by searching...
Hope that helps.
Some Examples:
ActionBar:
https://developer.android.com/training/basics/actionbar/styling.html
Buttons:
https://www.androidcookbook.com/Recipe.seam?recipeId=3307
SeekBar:
Android - styling seek bar
Switch:
How can I style an Android Switch?
And a lot more... You will have to search for what you want.
I'm currently using an EditText field with a grey background. My problem is that when auto-correction happens, you can't see the grey auto-corrected words against the grey background. Is there a way to change the default font used by auto-correct?
You can configure the appearance of pretty much everything by theming your application. That would also be the way to go to customize the appearance of your EditText.
Read the Styles and Themes guide at Android Developers.
I recommend you have a look at the themes.xml file of the emulator of your target platform. It's located in android-sdk/platforms/android-X/data/res/values.
I would like to customize my android app looks. The idea is following:
In web service I choose user and for that user I choose :
- button background color
- background color
- font color
- what modules are available (tabs on/off in tabHost)
etc ..
In my android app user start to login and then download settings set in web services.
(ButtonColor : red, BacgroundColor : black, Module1 : true..... etc.)
Now I want to apply that color to all my app activities.
Any idea how to achive that ?
I do little research and I could do what I want by XML style file, but I can't change XML attributes ( example button color) at runtime. I can change however theme at runtime, but in xml theme i still need to change hardcoded attributes at runtime to set color.
Thx for any help.
The short answer is that when you show the activity you can loop through all your controls and set the colors at that time.