Android Question For Seekbar

zhuxiaoge888

Member
Licensed User
Hallo,
I have question for seekbar. Now i have a nummer, this nummer will increase 1 every 1s. At the same time , i want to this seekbar to move forwardly. How can i do this ?
Thank you!
 

MarcoRome

Expert
Licensed User
Longtime User
Hi.
B4X:
Sub Activity_Create(FirstTime As Boolean)
.....
ProgressBar1.Progress = 0
Timer1.Initialize("Timer1", 1000)
Timer1.Enabled = True
End Sub

Sub timer1_Tick
ProgressBar1.Progress = ProgressBar1.Progress + 1
If ProgressBar1.Progress = 100 Then
Timer1.Enabled = False
End If
End Su
 
Upvote 0

zhuxiaoge888

Member
Licensed User
Hi.
B4X:
Sub Activity_Create(FirstTime As Boolean)
.....
ProgressBar1.Progress = 0
Timer1.Initialize("Timer1", 1000)
Timer1.Enabled = True
End Sub

Sub timer1_Tick
ProgressBar1.Progress = ProgressBar1.Progress + 1
If ProgressBar1.Progress = 100 Then
Timer1.Enabled = False
End If
End Su
ty
 
Upvote 0
Top