B4A Library [Lib, Chargeable] UltimateListView

Discussion in 'Additional libraries, classes and official updates' started by Informatix, Oct 26, 2012.

  1. Informatix

    Informatix Expert Licensed User

    You certainly not tried with an unmodified copy of the tutorial project. ItemTouch works fine on all devices, with all versions. Either you tried with a project containing a Touch event for the label, or a project containing items divided into cells (in this case, the event is CellTouch).
  2. jimmyF

    jimmyF Active Member Licensed User

    The first project of the tutorial works fine.
    But the tutorial project does NOT use the more complex features that I am using which are Animation, Animation Plus, Swipe, and Scroll which all work very well.
    The ItemClick, ItemLongClick, and ItemTouch do not work in my project.

    Here is my ULV setup code:
        ULV.PressedDrawable = 
        ULV.SelectionMode = ULV.SELECTION_SINGLE
        ULV.SelectWithClick = 
    Dim cd As ColorDrawable
    Colors.Green, 0)
        ULV.PressedDrawable = cd
        ULV.Background = cd
        ULV.Color = 

        ULV.DividerHeight = 
    Dim idx As Long
        ULV.AnimationCleaner = 
    Activity.AddView(ULV, 0, TBarHeight + edtSeek.Height + HeaderHeight + 5dip100%x , 100%y-(TBarHeight + edtSeek.Height + HeaderHeight))
    For i = 0 To dbCursor.RowCount - 1   
            dbCursor.Position = i
    Dim NewItem As typItemData
            NewItem.Text = dbCursor.GetString(

            idx = dbCursor.GetInt(
            mapItems.Put(idx, NewItem)
    "Item", idx)               
            ULV.MinimumDistanceForSwipe = 
            ULV.SetSwipeDirection(i, ULV.SWIPE_DIRECTION_BOTH)
        ULV.AnimationCleaner = 
  3. Informatix

    Informatix Expert Licensed User

    If you add the following code to the Bookmark example in the Swipe demo, you will see that all item events are working:
    Sub ULV_ItemTouch(Position As Int, Action As Int, X As Int, Y As Int, TouchedPanel As Panel)
    End Sub

    Sub ULV_ItemClick(ItemID As Long, Position As Int, ClickedPanel As Panel)
    End Sub

    Sub ULV_ItemLongClick(ItemID As Long, Position As Int, ClickedPanel As Panel)
    Log("LONG CLICK")
    End Sub
    So the problem is in your code. You block the events in some way or you did not declare them as they should be.
    jimmyF likes this.
  4. jimmyF

    jimmyF Active Member Licensed User

    Absolutely correct! I blocked them.

    I had an additional panel somehow hidden in the layout (copied and pasted from a sample :D)

    So...after pretty much dismantling all my code, libraries, manifest, everything, I checked my Item_LayoutCreator and discovered I was loading another panel with two unused buttons.

    Oh boy!

    Sorry to waste your time Fred.

    This is such a good product. I am using it in a couple of corporate projects.
    Informatix likes this.
  5. Beja

    Beja Expert Licensed User

    Hi Frederic,
    A long time ago I (believe) I donated and received the library and examples, but to be honest I can't say for sure since I didn't
    back up all files from my old computer.. but your libraries deserve many times donations.
    Informatix likes this.
  6. Informatix

    Informatix Expert Licensed User

    Yes, I confirm that you donated.
    Beja and yiankos1 like this.
  7. Beja

    Beja Expert Licensed User

    Thanks Fred,
    Would you please WhatsApp me.. My WahtsApp is the same as my mobile phone number.
  8. Informatix

    Informatix Expert Licensed User

    I don't have Whatsapp, and the only way to contact me is by email or this forum. I'm not on any social network. I don't even have a Facebook account.
    OliverA, Beja and agraham like this.
  9. LucaMs

    LucaMs Expert Licensed User

    So, according to "modern thought", you do not exist.
    jimmyF and ilan like this.
  10. Informatix

    Informatix Expert Licensed User

    I try to have a real life, with close friends, which is completely outdated indeed.
    Herbert32, jimmyF, Dey and 7 others like this.
  11. AnandGupta

    AnandGupta Active Member Licensed User

    You have found what we are still struggling to achieve. Congratulation.


  12. Beja

    Beja Expert Licensed User

    I know I don't exist but what can I do about that.

    Out of hand situation!
  13. Informatix

    Informatix Expert Licensed User

    It has been reported to me that ULV causes crashes on some devices running Android 9. After analyzing the logs, the problem ("null pointer dereference") comes from a C library, libhwui.so, which is part of the system, so I don't see what I can do about ULV. Note that by searching on the internet you can find similar cases affecting other products.
  14. SayCheese

    SayCheese Member Licensed User

    Just scratching the surface of B4A I started exploring ULV. The overall performance and flexibility of ULV is really awesome.
    However, when I wanted to use the ULV_ItemClick and ULV_ItemLongClick events they didn't seem to fire. It must be something obvious but I don't see the problem.
    I made a small testproject which resembles the situation.
    Can you give it a look please?

    Attached Files:

  15. Informatix

    Informatix Expert Licensed User

    The selectable parameter in your AddLayout and AddRowLayout is set to False.
    Jorge M A and SayCheese like this.
  16. SayCheese

    SayCheese Member Licensed User

    Fast and precise ;)
    You are of real value for the forum and B4A in general. Thanks.
    alimanam3386 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice