This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Code snippet for accessing a random color from color resources and assigning it to a TextView while | |
| * also maintaining backward compatibility using 'ContextCompat' class from Android Support Libraries | |
| */ | |
| private String[] mColorArray = {"red", "pink", "purple", "deep_purple", | |
| "indigo", "blue", "light_blue", "cyan", "teal", "green", | |
| "light_green", "lime", "yellow", "amber", "orange", "deep_orange", | |
| "brown", "grey", "blue_grey", "black" }; |