How purple 200 500 700 define in the color xml of a new Android Project

0 votes

A new Android project provides a set of purple colors for color primary, etc. I am interested in how the default color code is generated from.

Android default colors.xml

<resources>
    <color name="purple_200">#FFBB86FC</color>
    <color name="purple_500">#FF6200EE</color>
    <color name="purple_700">#FF3700B3</color>
    <color name="teal_200">#FF03DAC5</color>
    <color name="teal_700">#FF018786</color>
    <color name="black">#FF000000</color>
    <color name="white">#FFFFFFFF</color>
</resources>

On the other hand, I found a color tool on material.io that have provided

purple 200 = #ce93d8

purple 500 = #9c27b0

purple 700 = #7b1fa2

which does not match the android default purple color. Is it because it has used a different "purple"? or it changed the opacity?
 

Nov 23 in Android by Ashwini
• 2,760 points
20 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

How to define a circle shape in an Android XML drawable file?

I'm having some trouble locating the Android ...READ MORE

Nov 22 in Android by Edureka
• 10,880 points
43 views
0 votes
1 answer

What is the purpose of setImageResource() in Android?

setImageResource(): Use a resource id to set the ...READ MORE

answered Nov 8 in Android by Edureka
• 12,390 points
55 views
0 votes
0 answers

How to get the device's IMEI/ESN programmatically in android?

I want to use the IMEI to ...READ MORE

Nov 16 in Android by Edureka
• 10,880 points
19 views
0 votes
0 answers

view-source of a web link in android

I trying to load "view-source:http://goo.gl/lEYQQf" link in webview. If ...READ MORE

Nov 17 in Android by Edureka
• 12,390 points
17 views
0 votes
0 answers

How to implement the system lock screen in your own android app?

How should the system lock screen be ...READ MORE

Nov 22 in Android by Edureka
• 10,880 points
11 views
0 votes
0 answers

can we make multi color gradient in xml for android background?

There are only 3 options available for ...READ MORE

Nov 22 in Android by Edureka
• 10,880 points
23 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,027 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,100 points
1,661 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! An example via Matt Cutts via SL4A -- "here’s ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,100 points
471 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,630 points
426 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP