Wish Multi mode XUI xcustomlistview

Discussion in 'Bugs & wishlist' started by DroidLyon, May 20, 2019.

  1. DroidLyon

    DroidLyon Member Licensed User

    Hi

    It is possible to contain all/many of the different "modes" of [B4X] [XUI] xCustomListView (expandable lists, pull to refresh, swipes etc) within one library (Class)?

    Within one App I am currently able use the master lib as it is intended for one list, and if I want to use the expandable version in the same app I rename the class HERE (and I think needing to change some of code within it) and they can successfully work alongside each other

    Advantages to me are:
    1) don't have different versions of code in different places and therefore less likely to carry forward bugs (I note that the master XCLV is now at version 1.7+ whilst the expandable class is at 1.65 for example)
    2) less maintenance
    3) ease of use

    I have no idea whether this is feasible, and suspect that it may be too complicated, hard work and/or risky, but I thought in my simplistic amateur head that for example introducing a "mode" for xlcv, in designer or class initialise it could be possible - then if mode zero it's a standard Xclv, mode 1 expanded version etc. Perhaps there is a better way.

    Here are some of variants I use with links.

    Standard xCustomListView
    Expandable list
    animated header
    xCLVSwipe
    floating titles
    Claudio's xSelectableCustomListView
    IndexedTable (not XUI)
    DaniDPX IndexedTable with Custom List view (not XUI)

    Thk for reading
    D
     
    AnandGupta likes this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    These two classes are extensions to the standard xCustomListView library:
    CLVSwipe: https://www.b4x.com/android/forum/t...view-swipe-actions-and-pull-to-refresh.98252/
    CLVHeader: https://www.b4x.com/android/forum/t...ce-animated-header-to-xcustomlistview.105343/

    IndexedTable has nothing to do here.

    Going forward more extensions will be created. There is no reason to over-complicate the standard library. At this point it is a mistake to use modified version of the standard library as it will cause conflicts with other libraries that depend on xCustomListView.
     
  3. DroidLyon

    DroidLyon Member Licensed User

    Thanks for explaining strategy and agree with not over complicating standard library.

    I think I was naively hoping the suggestion would enhance XCLV rather than overcomplicate, and that at some point the Xcustomlistview would miraculously metamorphise into a XUI version of Informix's self contained Ultimatelistview :eek:

    I'd think though it would be useful for newbies if there was a reference to the supported extensions in the main xcustomlist view post.

    Looking forward to the next extension, especially the expandable list version !
     
    AnandGupta likes this.
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. DroidLyon

    DroidLyon Member Licensed User

    Thank you very much.

    Can't think of a platform more responsive to developer needs than the B4x Suite. :)
     
Loading...
  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