B4A Library [Lib] UltimateListView

I've been working on this project for a long time and I'm very proud to release the version 4 today.

The UltimateListView is, as its pompous name says, THE ListView.

  • It can handle very long lists. This is a screenshot of a list with 245813 items, all different:

    verylonglist.jpg


  • It can mix different layouts (and they can be changed dynamically). You can use it as an expandable ListView:

    layouts.jpg


  • It has a low memory footprint and is very fast (this report comes from the Performance demo where the list has to display 128901 distinct words read from a database and the used device is a Huawei Honor single core 1.4 Ghz):

    performance.png


  • It can scroll in both directions thanks to its swipe detector:

    tables.jpg


  • The swipe detector can also be used to implement a swipe-to-dismiss or a swipe-to-reveal:

    swipedetector.png
  • You can easily add editors to your table to change its content:

    celledit.jpg


  • You can animate the items when they are added, removed, replaced or when the list is scrolled (with your own custom animation):

    animationclap.png


  • It can stack items from the bottom:

    stackfrombottom.png


  • It supports drag & drop operations (internal & external):

    dragndrop.png


  • You can synchronize lists with different item heights:

    grid.jpg
The examples will show you how to implement a Pull-to-Refresh, create sticky headers or combine several lists to make a wheel. One of the examples is an improved version of my File Explorer class.

All texts and images can be loaded asynchronously (from Internet, from a database or from a local folder), so you can scroll even if the data are not fully loaded.

The list has its own state manager.

Since September 2018, ULV is available for free. You can still donate for it if you wish.
To send the money, just click on the Donate button below (the amount to enter is in euros):


Note that UltimateListView is not a wrapper around the work of someone else. It is 100% my own code and it is based upon the standard Java ListView of Android.

The UltimateListView does not work with Android versions < 2. It cannot work with B4J or B4i.

Current version: 4.50

DOWNLOAD HERE:
 
Last edited:

Blue.Sky

Active Member
Licensed User
Longtime User
Hello
How can i purchase your library?(From dontate?)
 

Lello1964

Well-Known Member
Licensed User
Longtime User
Hello Informatix, i have a problem, must change imageview in a panel from a sub without move to item. How refer to panel from Id or position ?
 

Luis Felipe

Member
Licensed User
Longtime User
I've been working on this project for a long time and I'm very proud to release the version 4 today.

The UltimateListView is, as its pompous name says, THE ListView.

  • It can handle very long lists. This is a screenshot of a list with 245813 items, all different:

    View attachment 18467

  • It can mix different layouts (and they can be changed dynamically). You can use it as an expandable ListView:

    View attachment 14357

  • It has a low memory footprint and is very fast (this report comes from the Performance demo where the list has to display 128901 distinct words read from a database and the used device is a Huawei Honor single core 1.4 Ghz):

    View attachment 21236

  • It can scroll in both directions thanks to its swipe detector:

    View attachment 14361

  • The swipe detector can also be used to implement a swipe-to-dismiss or a swipe-to-reveal:

    View attachment 21240
The examples will show you how to implement a Pull-to-Refresh, create sticky headers or combine several lists to make a wheel. One of the examples is an improved version of my File Explorer class.

All texts and images can be loaded asynchronously (from Internet, from a database or from a local folder), so you can scroll even if the data are not fully loaded.

The list has its own state manager.

Due to the important work made, I request a minimum donation amount of 25 euros.

To send the money, just click on the Donate button below (the amount to enter is in euros).

What you'll get:
- the main library and all the libraries required by the examples;
- a complete User's Guide;
- a detailed list of all functions, events and properties;
- a tutorial;
- 15 examples with a few useful and reusable classes.

Note that UltimateListView is not a wrapper around the work of someone else. It is 100% my own code and it is based upon the standard Java ListView of Android.

You can download here the list of all functions and properties, and the table of contents of the user's guide.

15 examples (.APK) can be downloaded from Google Drive.

The UltimateListView does not work with Android versions < 2.

Current version: 4.04

Bonus : the DataCollection library is available for free with UltimateListView.

Great library Fred : is it possible to combine/using it with the SearchView class from Erel ? if yes how would it be possible ?
Thanx in advance.
 

Informatix

Expert
Licensed User
Longtime User
There's a new version available for download.

Changelog v4.05:
- I added the UltimateLVPanel class to ease some operations on the item panels;
- I added the GetVisiblePanels function;
- I added the IsUniqueID function;
- I fixed an issue in the Editor demo;
- I added an example with two ULVs that can exchange items (DragNDropBetweenULV_demo.b4a);
- I updated the CallSubExtended library.
 

imbault

Well-Known Member
Licensed User
Longtime User
Hi @Informatix, is it possible to make like below:
an small horizontal scrollview with pictures, and a big imageview on up showing current picture, then just add a button to show previous/next?

upload_2015-11-1_19-43-18.png
 

MarcoRome

Expert
Licensed User
Longtime User
Hi all, i Have pictures with background white and this code:


B4X:
        ULV.Initialize(0, 0, "", "ULV")
            Activity.AddView(ULV, 0, 0, 100%x, 100%y)
            ULV.SetStyle(ULV.STYLE_HOLO_LIGHT)
            ULV.Color = Colors.White

But when i click about pictures i see background Gray:


2015-11-04 15.45.02.jpg



It is possible set background with colors white so when i tap i dont see this gray color ?
Thank you
 

Informatix

Expert
Licensed User
Longtime User
Hi all, i Have pictures with background white and this code:


B4X:
        ULV.Initialize(0, 0, "", "ULV")
            Activity.AddView(ULV, 0, 0, 100%x, 100%y)
            ULV.SetStyle(ULV.STYLE_HOLO_LIGHT)
            ULV.Color = Colors.White

But when i click about pictures i see background Gray:


View attachment 38672


It is possible set background with colors white so when i tap i dont see this gray color ?
Thank you
Set the panel color to white in the Creator sub.
 

MarcoRome

Expert
Licensed User
Longtime User
Set the panel color to white in the Creator sub.

Hi Informatix, Thank you for your response.

I have this layout :

Screenshot 2015-11-05 14.46.26.png


As you see i have Activity Color White (#FFFF)

I try also this code:

B4X:
Sub Item_LayoutCreator(LayoutName As String, LayoutPanel As Panel)
            LayoutPanel.Color = Colors.White
            LayoutPanel.LoadLayout("lay_menu_details")
           
End Sub

Sub Item_ContentFiller(ItemID As Long, LayoutName As String, LayoutPanel As Panel, Position As Int)
   
    LayoutPanel.Color = Colors.White
   
    Dim imageview1 As ImageView = LayoutPanel.GetView(0)
    'First view in the panel
    imageview1.Gravity = Gravity.FILL
    .....

But dont change nothing.
Any idea ?
Thank you
Marco
 
Top