New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gufemur
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2010
Default [Q] smali color coding???????

I've searched and searched and can't find my answer, so if this has already been discussed, I appoligize. I'm trying to edit colors in various smali files and am trying to understand the breakdown of the color coding. ie const/high16 v6, -0x100. I've seen that some of you are simply taking out the high16 and then entering a standard hex color code. Could someone just explain what the different portions of that code stand for? If I sound like a NOOB, it's because I am. Please have mercy on my soul
 
gufemur
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2010
anyone?????????? I don't need tons of details, just a little understanding.

Thanks
 
-= sk0t =-
Old
(Last edited by -= sk0t =-; 14th November 2011 at 07:41 PM.)
#3  
Junior Member
Thanks Meter 33
Posts: 9
Join Date: May 2010
If still need
const/high16 v6, -0x100 = const v6, -0x1000000 = FF000000
const/high16 v6, -0x1 = const v6, -0x10000 = FFFF0000
const v6, -0x100 = FFFFFF00
const v6, -0x1 = FFFFFFFF


http://www.mediafire.com/?xyl88qzm6m7652r
The Following 25 Users Say Thank You to -= sk0t =- For This Useful Post: [ Click to Expand ]
 
iridaki
Old
#4  
iridaki's Avatar
Retired Forum Moderator / Recognized Themer
Thanks Meter 4430
Posts: 3,598
Join Date: Feb 2007
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by -= sk0t =- View Post
If still need
const/high16 v6, -0x100 = const v6, -0x1000000 = FF000000
const/high16 v6, -0x1 = const v6, -0x10000 = FFFF0000
const v6, -0x100 = FFFFFF00
const v6, -0x1 = FFFFFFFF


http://www.mediafire.com/?xyl88qzm6m7652r
Hands down the most useful thing I have seen in a while!!!!
 
lufc
Old
#5  
lufc's Avatar
Senior Moderator / Resident Priest
Thanks Meter 1472
Posts: 9,442
Join Date: Oct 2007
Location: Blackpool UK

 
DONATE TO ME
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Pay attention and participate,Encourage,
not discourage, Listen to advice and accept instruction,
and in the end you will be wise.......... Prov. 19:20
 
gunnermike
Old
#6  
gunnermike's Avatar
Senior Member
Thanks Meter 340
Posts: 1,396
Join Date: Dec 2010
Location: Crestview
Quote:
Originally Posted by -= sk0t =- View Post
If still need
const/high16 v6, -0x100 = const v6, -0x1000000 = FF000000
const/high16 v6, -0x1 = const v6, -0x10000 = FFFF0000
const v6, -0x100 = FFFFFF00
const v6, -0x1 = FFFFFFFF


http://www.mediafire.com/?xyl88qzm6m7652r
if i were a woman, id totally have your baby!
Jesus Christ is my Lord and Savior!






If you like what I do, buy me a Diet Dr Pepper
 
robm1911
Old
#7  
robm1911's Avatar
Recognized Themer
Thanks Meter 1731
Posts: 1,123
Join Date: Nov 2010
Location: Weatherford Tx.

 
DONATE TO ME
Quote:
Originally Posted by -= sk0t =- View Post
If still need
const/high16 v6, -0x100 = const v6, -0x1000000 = FF000000
const/high16 v6, -0x1 = const v6, -0x10000 = FFFF0000
const v6, -0x100 = FFFFFF00
const v6, -0x1 = FFFFFFFF


http://www.mediafire.com/?xyl88qzm6m7652r
very handy tool thank you for this
 
gufemur
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2010
How do you know whether to use const/high16 or const?
 
Pneuma1985
Old
#9  
Pneuma1985's Avatar
Senior Member
Thanks Meter 373
Posts: 470
Join Date: Jan 2011
Location: Around

 
DONATE TO ME
Most useful smali color coding tool out there that I have found... Anyone find better please let us know... Id like to have one that helps with the variables as well that would be nice...









 
Josehg
Old
#10  
Member
Thanks Meter 28
Posts: 58
Join Date: Jul 2012
Quote:
Originally Posted by -= sk0t =- View Post
If still need
const/high16 v6, -0x100 = const v6, -0x1000000 = FF000000
const/high16 v6, -0x1 = const v6, -0x10000 = FFFF0000
const v6, -0x100 = FFFFFF00
const v6, -0x1 = FFFFFFFF


http://www.mediafire.com/?xyl88qzm6m7652r
Really, really useful app, thanks m8

Tags
smali color

XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more