I'm looking to apply Material Design into my app. I've read about using material themes and about how I can customise these with my own colours from the Android Developer website, however the webpage only describes a few of the material design attributes I can use in my themes.xml
.
The webpage only refers to the main theming attributes:
- colorPrimary
: The app's main branding colour
- colorPrimaryDark
: A darker variant used for status bars and contextual app bars
- colorAccent
: The accent colour, to theme some UI controls
It also describes some other attributes shown in the diagram below:
However, I want to know all of the different theming attributes that can be applied to a material design theme. For example, I know there are other attributes such as colorButtonNormal
, but I want to know the full list of these attributes and what they each do.
Material Theming is the ability to systematically customize Material Design to better reflect your product's brand.
The Material Design color system helps you apply color to your UI in a meaningful way. In this system, you select a primary and a secondary color to represent your brand. Dark and light variants of each color can then be applied to your UI in different ways.
The tertiary key color is used to derive the roles of contrasting accents that can be used to balance primary and secondary colors or bring heightened attention to an element. The tertiary color role is left for teams to use at their discretion and is intended to support broader color expression in products.
colorPrimary and colorSecondary represent the colors of your brand. colorPrimaryVariant and colorSecondaryVariant are lighter or darker shades of your brand colors. colorSurface is used for “sheets” of material (like cards and bottom sheets) android:colorBackground is the window background color of your app.
I don't think that there's a detailed description of each attribute. You can dive into the sources and try to guess the purpose of each attribute. See: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes_material.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With