B4J Code Snippet Change (or hide) TableView "No content in table" text

LucaMs

Expert
Licensed User
Author: @stevel05:

Description
: allows you to change the default text in TableViews when there are no rows, it is empty.

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


Default (italian) text.........................................................Custom..................................................................................My favorite, the one I was looking for.
1612874156421.png
1612874245072.png
1612874362938.png
 
Top