B4A Library [B4X] [XUI] AS MultiColumnCustomListView based on xCustomListView

Hello this is a mutli column custom list view. You can add 1-100 columns, the screen is the limit. The items can have different heights.

I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee. :)

If a stress test is performed on the view, unwanted behavior can occur, but this does not happen in normal operation. Remember to always test in release mode!

ezgif.com-resize (3).gif


AS_MultiColumnCustomListView
Author: Alexander Stolte
Version: 1.00

  • AS_MultiColumnCustomListView
    • Events:
      • ItemClick (Index As Int, Value As Object)
      • ItemLongClick (Index As Int, Value As Object)
      • ReachEnd
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • Add (Pnl As B4XView, Value As Object) As String
        Adds a custom item.
      • Class_Globals As String
      • Commit As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • getColumnCount As Int
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
    • Properties:
      • ColumnCount As Int [read only]
Changelog
  • 1.00
    • Release
  • 1.01
    • BugFixes
  • 1.02
    • Add Clear - Clears all lists
  • 1.03
    • Add Designer Property LazyLoading
    • Add Designer Property LazyLoadingExtraSize
    • Add Event LazyLoadingAddContent
    • Add set ColumnCount
Have Fun :)
 

Attachments

  • AS MultiColumnCustomListView.zip
    11.2 KB · Views: 53
  • AS_MultiColumnCustomListView.b4xlib
    4.9 KB · Views: 52
Last edited:

asales

Expert
Licensed User
Longtime User
Waiting for a long time to a view like this. Thanks!

 

Mahares

Expert
Licensed User
Longtime User
You may want to check the Sub AS_MultiColumnCustomListView1_ItemClick (Index As Int, Value As Object)
The event does not fire.
 

LucaMs

Expert
Licensed User
Longtime User
I have to correct myself, I didn't even know that you can add views with a right click in the views tree, but even if you use the .bas file you get an error.
I only have one View of yours (mea culpa 😊 ), I don't know what it is, I think I have downloaded it just to try to help someone. I added it that way (right-click = context) and had no problems.

I suppose (99%) that the context menu and "menu bar menu" are identical and at least operate in the same way. We could ask Erel, but I have never read any differences; as mentioned, I didn't even know that possibility existed (it's no more convenient than from the "top menu", I think).
 
Last edited:
Top