Android Question Dynamically creating tabstripviewerpage tabs with XUI customlistview

Discussion in 'Android Questions' started by DroidLyon, Feb 9, 2018.

  1. DroidLyon

    DroidLyon Member Licensed User

    Hi all

    I'm trying to dynamically create a number of tabs based on content from a SQLLite database. These tabs are then populated with data into XUI customlistviews and where I attempt to lazy load as per Erels guide here

    Rather than hard code and use multiple designer created clvs and events (as you can see from commented out and generally disorganised code ..) I've used a single layout containing a single xui customlistview and then use the sender object to get the correct events. This appears to work.

    But as I'm still a noob is this OK or is there a better way to dynamically create the tabs and associated events using the XUI clv?

    I have attached latest project (B4a 7.80)

    [NB my end game is a generic template for any relational SQLLite CRUD projects containing all the efficiency techniques I've read about on forums - which I'll have several questions about at a later date as lots more work required on this, so no need for comment on these and all other obvious faults just yet ! ]

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    It is a large project so it is difficult to answer your question.

    This is a good approach.
  3. DroidLyon

    DroidLyon Member Licensed User

    Yes understand. More on this on another question soon ..

    Thanks Erel :)
  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