Android Question I will show number in label

khosrwb

Active Member
Licensed User
Longtime User
I will show number in label but don't work


B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Dim lib As Label
    Dim st As String
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    lib.Initialize("lib")
    Activity.AddView(lib,5%x,5%y,80%x,90%y)
    lib.TextSize = 20
    lib.Color = Colors.DarkGray
    lib.Gravity = Gravity.CENTER
    
    For i=0 To 9999
        st= i
        lib.Text = st
        Log(i)
    Next
End Sub
 

Attachments

  • lbi1.zip
    6.7 KB · Views: 160

khosrwb

Active Member
Licensed User
Longtime User
thanks for your answer
actually I want to load many picture and I wanted to show number of loaded image.
there is way to show this number ?
if is possible please tell me

thanks
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
How and where do you load the images ?
You need to give more details, do you want to show the the evolution of the loading or only the number?
I suppose you load the images in a loop, so you update the number either in the loop or at the end.
 
Upvote 0
Top