[Galaxy S II Android Development] remuntada78:
Hi [MENTION=3065070]Goldie[/MENTION] i'm trying to change the color of dots in the lockscreen clock

all work fine with numbers but in the smali file the code for dots is not implemented

in the xml file dots are managed in this line

<ImageView android:id="@id/zzz_colon01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/keyguard_lockscreen_time_dot" />

so i tried to implement dots's code in the smali like this

.line 1002
const v0, 0x10202cd

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mHour02:Landroid/widget/ImageView;
[COLOR="Red"]
const v0, 0x10202ce [COLOR="Blue"]id of zzz_colon01[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/widget/ImageView;

iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/widget/ImageView;

invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/widget/ImageView;

const v2, 0x10202ce [COLOR="Blue"]id of zzz_colon01[/COLOR]

invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

iget v3, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDotColor:I

sget-object v4, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

invoke-virtual {v0, v3, v4}, Landroid/widget/ImageView;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
[/COLOR]
.line 1003
const v0, 0x10202cf

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mMin01:Landroid/widget/ImageView;

and like this

.line 1002
const v0, 0x10202cd [COLOR="Blue"]id of keyguard_lockscreen_time_dot[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mHour02:Landroid/widget/ImageView;
[COLOR="Red"]
const v0, 0x108044b [COLOR="Blue"]id of keyguard_lockscreen_time_dot[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/view/View;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/view/View;

iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/view/View;

invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

iget-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDot:Landroid/view/View;

const v2, 0x108044b

invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundResource(I)V

iget v3, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mDotColor:I

invoke-virtual {v0, v3}, Landroid/view/View;->setBackgroundColor(I)V
[/COLOR]
.line 1003
const v0, 0x10202cf

invoke-virtual {p0, v0}, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

iput-object v0, p0, Lcom/android/internal/policy/impl/sec/ClockWidget$Clock;->mMin01:Landroid/widget/ImageView;

but with both ways i lose dots in the clock

Have you any suggestion?

thanks in advance