In this post , I will tell you all "How to convert a hex color code to smali color code."
0 = F
1 = E
2 = D
3 = C
4 = B
5 = A
6 = 9
7 = 8
8 = 7
9 = 6
A = 5
B = 4
C = 3
D = 2
E = 1
F = 0
======================================
For example ,
1. Take a hex code of any color , suppose #ff444443 .
Now to convert it into a smali color code ,
2. Take the last 6 digits of hex code i.e. 444443 and
write the value that corresponds to it using above
table.
3. Like 4=b , 3=c. The 444443 will become bbbbbc.
4. Now write -0x in front of this value.
5. The final code will become -0xbbbbbc. Done.
======================================
Thanks to ,
XDA
Gurpreet Singh
Showing posts with label convert smali color code. Show all posts
Showing posts with label convert smali color code. Show all posts
Friday, 26 February 2016
How to convert a hex color code to smali color code
Subscribe to:
Posts (Atom)