Jump to content

classes.dex color issue


Recommended Posts

Guest peewster
Posted

Hi guys,

i'm pretty new to this forum (posting etc....) But i have a question.

I editted something within de classes.dex file (services.jar) and changed my clock color to red. The color red's code in this file = 0x4180. Now i want to change this color to white or blue or something else, but i can't find the color codes to modify the classes.dex file.

Here is some code from the file:

.line 59

	.local v2, layoutParams:Landroid/widget/LinearLayout$LayoutParams;

	const/high16 v6, 0x4180 (This gave me the red clock color)


	invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextSize(F)V


	.line 60

	const/high16 v7, -0x1


	invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V

I really need some help to understand this file.....

Guest djmcnz
Posted
Hi guys,

i'm pretty new to this forum (posting etc....) But i have a question.

I editted something within de classes.dex file (services.jar) and changed my clock color to red. The color red's code in this file = 0x4180. Now i want to change this color to white or blue or something else, but i can't find the color codes to modify the classes.dex file.

Here is some code from the file:

.line 59

	.local v2, layoutParams:Landroid/widget/LinearLayout$LayoutParams;

	const/high16 v6, 0x4180 (This gave me the red clock color)


	invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextSize(F)V


	.line 60

	const/high16 v7, -0x1


	invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V

I really need some help to understand this file.....

And

const/high16 v7, -0x1

Is black...

But you haven't really asked a question that can be answered in your post?

Guest peewster
Posted
And

Is black...

But you haven't really asked a question that can be answered in your post?

Sorry for my stupiditty :mellow:

so -0x1 is black, then i'm wondering how can i check the other color codes in the same code, something like -0x2 ??? or is that a dumb suggestion.

I also wonder why the red color overrides the black color....

Guest djmcnz
Posted
Sorry for my stupiditty :mellow:

so -0x1 is black, then i'm wondering how can i check the other color codes in the same code, something like -0x2 ??? or is that a dumb suggestion.

I also wonder why the red color overrides the black color....

Those lines above are for different UI elements (v6 and v7), so one is red and one is black.

Here you go: http://www.droidforums.net/forum/droid-the...-reference.html

Guest djmcnz
Posted
Ok this is a really good answer to my question, thanks allot, seriously! :mellow:

:o

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.