B4J Question Tableview: Replace the default "no content in table" for empty table

stevel05

Expert
Licensed User
Longtime User
Like this:

B4X:
Public Sub SetTVPlaceholder(TV As TableView,Text As String)
    Dim TVJO As JavaObject = TV
    Dim L As Label
    L.Initialize("")
    L.Text = Text
    TVJO.RunMethod("setPlaceholder",Array(L))
End Sub

An call it:

B4X:
SetTVPlaceholder(TableView1,"No Data")
 
Upvote 0
Top