Wish [SOLVED] Is there a bug with backgroud color of the CustomListView in B4J?

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
I am attaching three screenshots in which you can see the appearance of the listview in the designer, the one that then appears when executing the application made with B4J and the one that appears when executing the application with B4A.

The problem only occurs to me when using B4J as long as there are not enough elements to completely fill the customlistbox. It is as if the fixed background color was always white.

Captura3.jpg is the image in which you can see the problem.
 

Attachments

  • Captura1.JPG
    Captura1.JPG
    49.5 KB · Views: 162
  • Captura3.JPG
    Captura3.JPG
    34.4 KB · Views: 152
  • Captura2.JPG
    Captura2.JPG
    21.9 KB · Views: 147

Gabino A. de la Gala

Active Member
Licensed User
Longtime User
This is a limitation of the way CLV works. The divider color = the background color.

You can use XUIViewsUtils.AddStubToCLVIfNeeded to add a stub item at the bottom.

If you previusly define the correct color in then visual designer, then you can assign it by code (you need to have installed the version 2.40 of XUI Views):

B4X:
XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView1, CustomListView1.AsView.Color)
 
Top