Is there any way to load a tableview without first loading into a list? I am worried about speed and am wondering if loading a list from disk and then moving it to tableview is slow. Am I concerned about nothing?
You don't actually have to move the data from a list to tableview. You can tell the tableview to use your list for its data.
See the setAll command for a tableview (not sure if its implemented in B4j) but can easily be done with javaobject.
eg,
B4X:
...
asJO(tv).RunMethodJO("getItems",Null).RunMethod("setAll",Array(li))
' Tableview tv will now use li list as its data
End Sub
Sub asJO(o As JavaObject) As JavaObject
Return o
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.