simple code here where button1 tag=s and text = 0
What im trying to do is when button1 is down , label1 show 'w' and button1 is up, label1 show '0'.
but when i press down and holding button1 , the label show 'w' then '0' and finally 'w'. Seem like the button is triggered down , up , down .
while for realising the button, its normal. only showing '0'
trying on sony xperia sola and samsung note 2, both return same problem.
but trying on emulator, there is no such problem.
any idea ??
B4X:
Sub Process_Globals
End Sub
Sub Globals
Dim Button1 As Button
Dim Label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Down
Label1.Text=Button1.Tag
End Sub
Sub Button1_Up
Label1.Text=Button1.Text
End Sub
What im trying to do is when button1 is down , label1 show 'w' and button1 is up, label1 show '0'.
but when i press down and holding button1 , the label show 'w' then '0' and finally 'w'. Seem like the button is triggered down , up , down .
while for realising the button, its normal. only showing '0'
trying on sony xperia sola and samsung note 2, both return same problem.
but trying on emulator, there is no such problem.
any idea ??
Last edited: