Android Material default colors - android

I want to have colors for specific card states. I want to be able to reset it to its default.
Where can I find the default material colors from Android? Especally of the Android CardView.
Thanks for help.
Edit:
The Cards have an backgroundcolor (not the images) which is not white. Which color is this?
Or is there any method to reset the Backgroundcolor of View-Elements?
Sry for bad english.

Finally, I found the solution: #fafafa
It's the Background colour that Google used on the website hakkikonu posted.
Edit:
Maybe it changed over time. Updated answer (thanks to arts777)

https://material.google.com/style/color.html#color-themes link describes all of your question. Also you can see more notes about material design.

If you're worried that this color will change over time and you'd like to be up to date if and when Google changes it, you can use ?android:colorBackground.
As of July 2017, it is still #FAFAFA

Related

Google Material You: How can we use the same Color Accent than system+Google Apps?

I have read the "documentation" to find the reference to accent color: https://developer.android.com/reference/android/R.color#system_accent1_0
But after implementing it in my application, I am not happy with the results and really like the Google implementation. (See screenshot below)
I have tried to display all colors in a sample application (the one on the left) and cannot find the same color than Google apps on the right (Phone, Gmail, Drive)
Is Google implementing a custom / proprietary implementation? Did I missed something?
Thank a lot for any help to find the right colors to use for my ActionBar, FAB, and other items.
First of all most of the colors have transparency so it will be affected by background color, in their implementation, they used a dark brown color, which will affect some colors if there is transparency.
Some of the colors are identical see the image.

Dynamic colours in an app

I have colors of text and button come dynamic form backend,
I need to change this color of text dynamically when change happens in backend all at time.
I could make it manual
textView.setTextColor(getResources().getColor(R.color.text_color));
Is there a way to change group of text color dynamically or must set every text color manually in code?
I searched for how to change theme colors dynamically at run time and i found this answer this answer.
But I also search again and I found this github
but it doesn't work on Android Marshmallow (6.0+) and it's use is discouraged! as he say.
Is there any lib or method to change the theme on runtime?
So far it's impossible and not viable because of themes are immutable.
GreenMatter becomes outdated so regretfully the answer of your question is No way.
More precisely, the color overriding at runtime is not working. There is no fix found at the moment. The future of this feature is uncertain.

android support lib 23.1.1 changes floating label color on setError()

is there a way to change the color of 'Password'? Basically, I prefer what support lib 23.1.0 had. I have a page that has multiple TextInputLayouts, and it would be hard to read if both hint and error are in red. please see the screenshot below.
there are a few fixes I want in 23.1.1, so please don't ask me to stay with 23.1.0. Thanks for all the help!!
Since it is a change in library it would be difficult to manipulate it. Android has decided to go that way (changing the label color along with the hint's color) and will become a standard soon and users will get familiar with it as time passes by. Not much we can do about it, but adhere, as always.
Workaround:
Don't set the Labels field on the TextInputLayouts. keep it blank and put another TextView just above it with the desired color and properly align it. That will not change, of course.
As per my comment below, you could also try this:
Hint color wont change. Just checked. So you may want to remove label and just add hint as android:hint="Enter password". The word Password in your screenshot is set in the Label and not as a hint.

How do Android components look like on different themes?

I want to know how all the Android components such as dialogs, buttons,.. will look like on different themes.
Somebody got a blog or an article for this? Thank you.
Here is an example of different Android themes:
http://android.appstorm.net/how-to/customization/dress-up-your-android-with-gorgeous-themes/
As a developper, I'll say that the appearance depends on what you're using for example for a button you may re-program your own button to use in your custom theme by adding an image in the button's background, change the button's shape or color .. and of course you can also change the look at each state (pressed, focused,etc.).

Android: advanced ColorPickerDialog

I'm looking for an advanced Android color picker dialog. The standard color picker from the API Demos and examples from this post aren't quite acceptable to me. I'd like it to look like this: this image. Are there any open source color pickers that look like that?
UPDATE: My primary goal is to make the Color Picker easy to use: it'd be great if the user only needs to click once to pick any color, and all possible colors are represented. The Color Pickers from the examples I've mentioned require two clicks to pick a color and are too complicated for the average user.
This one looks pretty close to what you want, and is FOSS:
https://github.com/LarsWerkman/HoloColorPicker
how about this solution ?
look at the screenshot:
source code here .
Have you tried Android Color Picker?
If you need to show the RGB-Code of the currently selected color, just modify the dialog by adding an TextView and adding an update to it in the ColorChangeListener (or whatever it's called)
Or take a look at the color-picker dialog of CyanogenMod
Here a link to the source: CyanogenMod color-picker on GitHub

Categories

Resources