Android Question Code Doesnt work?!?!

persianpowerman1

Active Member
Licensed User
Longtime User
guys... on the click event im trying to change the Alpha value of the label... so that its color appears slightly different...
what am i doing wrong because this below code doesnt work???
-------------------------------------------------
Sub Label3_Click
SetAlpha(Label3,255)
End Sub

Sub SetAlpha(Control As View, Alpha As Int)
Dim r As Reflector
r.Target = Label3.Background
r.RunMethod2("setAlpha", Alpha, "java.lang.int")
End Sub
---------------------------------------------------
 
Top