Coming soon - B4X XUI Auto Generating CustomListview headers

Peter Simpson

Expert
Licensed User
Longtime User
Not exactly fully automatic, but it's automatic enough and I've been using my previous version for the past 2 years.

Hello all,
After interacting with a certain B4X user (you know who you are ;)) a few days ago about CustomListviews not having headers, I decided to update my old B4J header routine. I'm currently testing this simple but really useful bit of code that automatically generates headers for CustomListviews. This solution is cross platform and works with B4A, B4J and also B4i.

All you have to do is the following
  1. Add and declare a Pane/Panel as a B4XView just above your CustomListview
  2. Add my code to your project (when I release it)
  3. Use the following line below to automatically generating your CLV headers
B4X:
     BuildHeaderAutomatically (True, "ItemRow", Array As String ("Label", "Text (box)", "Switch", "Button"))
  • True - Whether or not to include vertical dividers in the header
  • ItemRow - The name of the row layout file
  • Array - The header titles that you want to add
Desktop
1627377338811.png


Android
1627377576442.png


iOS
ios.jpg


Youtube video example - Adding a row view



Enjoy...
 
Last edited:
Top