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
Android
iOS
Youtube video example - Adding a row view
Enjoy...
Hello all,
After interacting with a certain B4X user (you know who you are
All you have to do is the following
- Add and declare a Pane/Panel as a B4XView just above your CustomListview
- Add my code to your project (when I release it)
- 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
Android
iOS
Youtube video example - Adding a row view
Enjoy...
Last edited: