Android Question Copy ScrollView

echapeta

Member
Licensed User
Longtime User
In order to improve the user's experience, I moved the population of a ScrollView to a Service.
In this way a long (2600 items) ScrollView is populated in the background.
In order to do so, I declared and initialized the ScrollView:
dim SCV as ScrollView
SCV.Initialize(0)
After that I populate the SCV.
My problem is how to copy FAST the manually instantiated and populated SCV to the actual ScrollView in the GUI, something like:
ScrollView1 = SCV

Can you help me ?

Thank You.
 

DonManfred

Expert
Licensed User
Longtime User
maybe with callsubdelayed...
B4X:
'code in service
CallSubDelayed2(main,"populateSV",SCV)

B4X:
' code in main
Sub populateSV(sv as Scrollview)
  Scrollview1 = sv
End Sub
 
Upvote 0
Top