From the course: Android Development Essential Training: The User Interface with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure Material Design theme colors

Configure Material Design theme colors - Android Tutorial

From the course: Android Development Essential Training: The User Interface with Kotlin

Start my 1-month free trial

Configure Material Design theme colors

- [Instructor] When you create a brand new application in Android Studio, it comes with a predefined theme. The theme is declared in the styles.xml file. It has a parent theme that it inherits a lot of settings from, and then it's modified by declarations of various colors. colorPrimary, colorPrimaryDark, and colorAccent are reserved names. They're expected by the Android SDK, and all you have to do is apply the colors that you want. Now in the default setting, these colors are defined in the colors.xml file. You can replace these colors and give them any name you want as long as those names match what's in your styles file. Now, you can define your palette in any number of ways, but one of my favorite shortcuts is this website at materialpalette.com. This website will let you choose two colors, a primary and an accent color, and then it will create an entire palette of matching colors for you that follow the material design specification. I'm going to choose a primary color of red…

Contents