Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
2.451K
· mostafagazar

Material Color Palette

#color
#gist
#random
#palette
#android
#android l
#material design

Simple class https://gist.github.com/MostafaGazar/fbb39a043f82c0201f05 that returns random color from the new Android L Material Color Palette. In the future it should be able to return random colors based on the primary color.

Gist https://gist.github.com/MostafaGazar/fbb39a043f82c0201f05

Usage:

int color = MaterialColorPalette.randomColor();

https://dribbble.com/shots/1619863-Material-Color-Palette

Picture

#color
#gist
#random
#palette
#android
#android l
#material design

Written by Mostafa Gazar

Say Thanks
Respond

Related protips

A better git log

693.7K
50

IOS customized activity indicator with Swift

138.8K
6

IOS UI colors with hex values in swfit

22.93K
1

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Color Authors
filipekiss
693.5K
#color
#average at best
itseranga
161.7K
#color
#cryptography
#docker
rfajfar
16.39K
#color
#Ruby
#Jade
alesf
11.35K
#color
#Problem solving
#User Interfaces
evannieuwburg
10.51K
#color
#AIR
#Javascript
Related Tags
#color
#gist
#random
#palette
#android
#android l
#material design
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Android Development Tips
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.