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!



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
  • 1.04
    • New ScrollToValue - Scrolls the list to a specified value
      • Scrolls the list to a specified value
      • Animated - If True the list scrolls smoothlie - If False the list jump to the item
      • Returns “True” if the item was found
Have Fun
 

Attachments

  • AS MultiColumnCustomListView.zip
    11.2 KB · Views: 201
  • AS_MultiColumnCustomListView.b4xlib
    5.2 KB · Views: 29
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.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.04
    • New ScrollToValue - Scrolls the list to a specified value
      • Scrolls the list to a specified value
      • Animated - If True the list scrolls smoothlie - If False the list jump to the item
      • Returns “True” if the item was found
B4X:
AS_MultiColumnCustomListView1.ScrollToValue(159,False)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…