# mad-skills

Published articles for mad-skills.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## MAD Skills Material Design Components: Wrap-Up

DevFeed: [MAD Skills Material Design Components: Wrap-Up](<https://devfeed.tech/articles/mad-skills-material-design-components-wrap-up-25987.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/mad-skills-material-design-components-wrap-up-d22a2df069c8?source=rss-37290b859aca------2>)

Author: Nick Rout

Published: 2020-12-11T18:01:17Z

Content type: article

Language: en

Sources: [Stories by Nick Rout on Medium](<https://devfeed.tech/sources/stories-by-nick-rout-on-medium.md>)

Topics: [Material Design](<https://devfeed.tech/topics/material-design.md>), [Android](<https://devfeed.tech/topics/android.md>), [android-development](<https://devfeed.tech/topics/android-development.md>), [Library](<https://devfeed.tech/topics/library.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [mad-skills](<https://devfeed.tech/tags/mad-skills.md>), [material-components](<https://devfeed.tech/tags/material-components.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [material-theming](<https://devfeed.tech/tags/material-theming.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

This wrap-up completes the third MAD Skills series topic on Material Design Components (MDC) for Modern Android Development. It points readers to videos, articles, sample apps, and codelabs covering Material Theming, Dark Theme, Motion, Jetpack Compose interoperability, and Android Studio template updates.

### Source excerpt

We hope you liked our materialIt's a wrap_content! The third topic in the MAD Skills series of videos and articles on Modern Android Development is complete. This time around we covered Material Design Components (a.k.a MDC). This library provides the Material Components as Android widgets and makes it easy to implement design patterns seen on material.io, such as Material Theming, Dark Theme, and Motion. Check out the episodes and links below to see what we covered. We designed these videos to closely follow our recent series of MDC articles as well as existing sample apps and codelabs, so you've got a variety of ways to engage with the content. We also had a Q&A episode featuring engineers from the MDC team! Episode 1: Why use MDC? The first episode by Nick Butcher is an overview video of this entire MAD Skills series, including why we recommend MDC, then deep-dives on Material Theming, Dark Theme and Motion. It also covers MDC interop with Jetpack Compose and updates to Android Studio templates that include MDC and themes/styles best practices. https://medium.com/media/79d74fd1bad21a94fc28742b3402afd9/href Or in article form: We Recommend Material Design Components Episode 2: Material Theming Episode 2 by Nick Rout covers Material Theming and goes through a tutorial on how to implement it on Android using MDC. Key topics include setting up a Theme.MaterialComponents.* app theme, choosing color, type, and shape attributes -- using tools on material.io -- and finally adding them to your theme to see how widgets automatically react and adapt their UI. Also covered are handy utility classes that MDC provides for certain scenarios, like resolving theme color attributes and applying shape to images. https://medium.com/media/d41aaddc87de1854e840265d07ed1ad6/href Or in article form: Material Theming with MDC: Color Material Theming with MDC: Type Material Theming with MDC: Shape Episode 3: Dark Theme This episode by Chris Banes gets really dark... It takes you through implem

## Dark Theme with MDC

DevFeed: [Dark Theme with MDC](<https://devfeed.tech/articles/dark-theme-with-mdc-24922.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/dark-theme-with-mdc-4c6fc357d956?source=rss-9303277cb6db------2>)

Author: Chris Banes

Published: 2020-08-25T22:01:01Z

Content type: tutorial

Language: en

Sources: [Chris Banes on Medium](<https://devfeed.tech/sources/chris-banes-on-medium.md>)

Topics: [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [Android](<https://devfeed.tech/topics/android.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [design](<https://devfeed.tech/tags/design.md>), [implement](<https://devfeed.tech/tags/implement.md>), [mad-skills](<https://devfeed.tech/tags/mad-skills.md>), [material-components](<https://devfeed.tech/tags/material-components.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [quick-start](<https://devfeed.tech/tags/quick-start.md>)

### AI overview

A tutorial on implementing dark themes in Android apps with Material Design Components. It explains the platform's device-wide dark-theme setting, the design and battery considerations, and the initial steps for extending an app theme with Theme.MaterialComponents.DayNight and optionally allowing users to choose the theme mode.

### Source excerpt

Using Material Design Components to implement a dark theme In the previous blog posts, Nick Rout went through the basis of Material Theming, and the pillars of color, typography and shape. Material Theming with MDC: Color Material Theming with MDC: Type Material Theming with MDC: Shape This post is going to build upon that to see how we can adapt our apps to support dark themes. User selectable dark themes were added to the Android platform in Android 10, but that does not mean they're new to app developers. The default theme for Android devices was dark up until Android 5.0 (Lollipop)! The difference last year was that the platform added a device-wide setting. Meaning that the user has additional control over the theme of the device, but also of apps. Alongside the recent device-wide setting, we now also have comprehensive design guidance on material.io, which we will talk about later in this blog post. Why support dark theme? First up, why support a dark theme at all? The Material.io page on Dark Theme has a good summary on some of the technical benefits (emphasis mine): Dark themes reduce the luminance emitted by device screens [...]. They help improve visual ergonomics by reducing eye strain, adjusting brightness to current lighting conditions, and facilitating screen use in dark environments -- all while conserving battery power [for OLED displays]. The most important reason though is that your users want it. The Android team added the system-wide dark theme setting because it consistently came up as a top requested feature by users. Now that I've convinced you to support dark themes in your app, let's look at how you add one... Quick start To add a dark theme to your app, use Material Design Components (MDC) for Android's support: #1: Change your theme You need to change your theme to extend from one of the Theme.MaterialComponents.DayNight themes: <style name="Theme.MyApp" parent="Theme.MaterialComponents.DayNight"> <!-- Other theme attributes --></style>#2: Choos

## Material Theming with MDC: Color

DevFeed: [Material Theming with MDC: Color](<https://devfeed.tech/articles/material-theming-with-mdc-color-25988.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/material-theming-with-mdc-color-860dbba8ce2f?source=rss-37290b859aca------2>)

Author: Nick Rout

Published: 2020-08-25T16:02:38Z

Content type: tutorial

Language: en

Sources: [Stories by Nick Rout on Medium](<https://devfeed.tech/sources/stories-by-nick-rout-on-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>), [material-components](<https://devfeed.tech/topics/material-components.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [Accessibility](<https://devfeed.tech/topics/accessibility.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [components](<https://devfeed.tech/tags/components.md>), [design](<https://devfeed.tech/tags/design.md>), [mad-skills](<https://devfeed.tech/tags/mad-skills.md>), [material-components](<https://devfeed.tech/tags/material-components.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [material-theming](<https://devfeed.tech/tags/material-theming.md>), [migration](<https://devfeed.tech/tags/migration.md>), [usability](<https://devfeed.tech/tags/usability.md>)

### AI overview

This tutorial explains color theming for Android applications with the Material Components library. It describes Material Design color slots, baseline light and dark themes, color attributes used to tint widgets, accessibility and contrast requirements, and tools for selecting and previewing color variants.

### Source excerpt

Color theming on Android using the MDC library This article is also posted on the Material Design blog. Material Theming is a way to customize Material Components to align with your brand. A Material theme includes color, typography and shape parameters which you can adjust to get near-infinite variations of the components -- all while maintaining their core anatomy and usability. On Android, Material Theming can be implemented using the Material Components (MDC) library, from version 1.1.0 onwards. If you're looking to migrate from the Design Support Library or MDC 1.0.0, take a look at our migration guide. Migrating to Material Components for Android This article will be focusing on color theming. Color attributes Material Design provides 12 color "slots" that make up the overall palette of your app. Each of these have a design term (eg. "Primary") along with a corresponding color attribute that can be overridden in your app theme (eg. colorPrimary). There are default "baseline" values for both your light theme and dark theme. MDC color attributes with light baseline valuesMDC color attributes with dark baseline values Material Components use these color attributes to tint elements of the widgets. Color attributes used by a button They are applied with eg. app:backgroundTint="?attr/colorSecondary" in layouts and widget styles. You might recognise some of these color attributes like colorPrimary. That's because a few of them are inherited from AppCompat and the platform, while the rest have been newly introduced by MDC. The table below illustrates the origin of each attribute. https://medium.com/media/913ab7a828a11fee6cf9fb333df54f3a/hrefPicking colors Figuring out which color values to use for each slot may be the responsibility of a designer, or derived from your product's brand. However, it's still useful to know about the role of each color, the relationship between them, and how to meet accessibility requirements: colorPrimary and colorSecondary represent the c