Android Question Activity view refer from code module

Mihai Rainer Jr.

Member
Licensed User
Is there any possibility to refer an activity view from a code module? For example, to change a label text from a code module?
 

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
You can pass a view as parameter.
B4X:
'Code module
Sub Process_Globals
End Sub
Sub ChangeText(l As Label)
    l.Text="From code module"
End Sub
 
Upvote 0
Top