[Sprint Samsung Galaxy Note 3] CNexus:
[MENTION=3824019]Gunthermic[/MENTION]

Found an even easier way to do this...

Original code:

.method private setTracePaintOptionsWithSettings()V
.locals 5

const/16 v4, 0xff

const/4 v1, 0x1

const/4 v3, 0x0

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

if-nez v0, :cond_0

new-instance v0, Landroid/graphics/Paint;

invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

iput-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

:cond_0
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;

if-eqz v0, :cond_1

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;

invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

:cond_1
iput-short v3, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePointCount:S

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

const/16 v1, 0xa5

const/16 v2, 0xf3

invoke-static {v4, v3, v1, v2}, Landroid/graphics/Color;->argb(IIII)I

move-result v1

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setAlpha(I)V

New code:

.method private setTracePaintOptionsWithSettings()V
.locals 5

const/16 v4, 0xff

const/4 v1, 0x1

const/4 v3, 0x0

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

if-nez v0, :cond_0

new-instance v0, Landroid/graphics/Paint;

invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

iput-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

:cond_0
iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;

if-eqz v0, :cond_1

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePoint:Ljava/util/ArrayList;

invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

:cond_1
iput-short v3, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePointCount:S

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setDither(Z)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

const/16 v1, 0xa5

const/16 v2, 0xf3

[COLOR="Red"]const-string v2, "#AARRGGBB" [COLOR="blue"]<--this is your color hex, AA is the alpha, RR is the red value, GG is the green value, and BB is the blue value[/COLOR]

#invoke-static {v4, v3, v1, v2}, Landroid/graphics/Color;->argb(IIII)I

invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v1

invoke-static {v1}, Landroid/graphics/Color;->alpha(I)I

move-result v4[/COLOR]

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

sget-object v1, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

iget-object v0, p0, Lcom/diotek/ime/framework/view/AbstractKeyboardView;->mTracePaint:Landroid/graphics/Paint;

invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setAlpha(I)V

This way you can just write out your hex code in one line