commit | 99d90a621084ec0f799dc7840cc05565a0589031 | [log] [tgz] |
---|---|---|
author | Deepanshu Gupta <deepanshu@google.com> | Sat Aug 09 14:14:45 2014 -0700 |
committer | Deepanshu Gupta <deepanshu@google.com> | Tue Aug 12 09:57:27 2014 -0700 |
tree | 0042efb754038ada9d06c41aaecfaf4ec63c963b | |
parent | 3afd00e9f2b55a21ca378d6e520d24283dbb62e0 [diff] |
Resolve color xml attributes properly. Color attributes were not being converted to int properly. The conversion to int was a simple string to int using base 16. This change resolves the colors as per #RGB, #ARGB, #RRGGBB or #AARRGGBB format depending on the length of the attribute. All values that begin with '#' are treated as colors. Bug: http://b.android.com/73845 Change-Id: I8ad089b821af1e290b9b95771b50213fe2fdd784