This file contains 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
public int calculateColorBase() { | |
String opacity = "#ff"; //opacity between 00-ff | |
String hexColor = String.format( | |
opacity + "%06X", (0xeeeeee & name.hashCode())); | |
return Color.parseColor(hexColor); | |
} | |
public int calculateColor() { |
This file contains 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
package com.blogspot.odedhb.later; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.TreeMap; | |
/** | |
* Created by oded on 1/20/14. | |
*/ |
This file contains 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
package com.robinlabs.voca; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.TreeMap; | |
/** | |
* Created by oded on 3/31/14. |
NewerOlder