Android Question Testing to see if a particular view is already loaded

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

Is there an easy way to test if a particular view is already loaded in a particular activity?

Maybe a function that looks something like this:

B4X:
If ViewIsLoaded(MyView, MyActivity) Then
    ' Do something here.
End if

B4X:
Sub ViewIsLoaded (theView As View, theActivity As Activity) As Boolean
    ' If the view for the activity is loaded then
    '    Return True
    ' Else
    '    Return False
End Sub
 
Top