B4J Question XCustomListView empty background color

stevel05

Expert
Licensed User
Longtime User
Is there a standard way to set the background color for the empty area of an xCustomListview? I can't seem to find it.

In the attached image the xCustomListView fills the whole screen and has 1 entry.

upload_2018-6-28_8-23-35.png
 

stevel05

Expert
Licensed User
Longtime User
Thanks Erel, I was hoping that there would be a cross-platform solution.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
In Code this acheives the same:

B4X:
CallSubDelayed3(Me,"SetScrollPaneBackgroundColor",CLV,XUI.Color_Black)

#If B4j
Private Sub SetScrollPaneBackgroundColor(View As CustomListView, Color As Int)
    Dim SP As JavaObject = View.GetBase.GetView(0)
    Dim V As B4XView = SP
    V.Color = Color
    Dim V As B4XView = SP.RunMethod("lookup",Array(".viewport"))
    V.Color = Color
End Sub
#End If
 
Upvote 0
Top