Android Tutorial [XUI] CustomListView with floating titles

Discussion in 'Tutorials & Examples' started by Erel, Jan 4, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User


    Title items are added to the list.
    A Panel is set above the list. The panel shows the current title when the top visible item is not a title item.

    It works by checking for the top item type. If it is a title item then the panel is hidden, otherwise the panel is shown with the current title.

    The title layout should be anchored to the bottom. This allows the same layout to be loaded to the panel and to the cell items.
    The panel is slightly taller to compensate for the two dividers.
    It is recommended to remove the call to AutoScaleAll. Otherwise the switch between the cell title and the panel title will not be accurate (as the variants sizes are different).

    It should be simple to implement the same solution in B4J and B4i.

    It depends on xCustomListView 1.50+.

    Attached Files:

    Last edited: Jan 4, 2018
    AnandGupta, HAH, koaunglay and 25 others like this.
  2. PABLO2013

    PABLO2013 Active Member Licensed User

    tks i will try...
  3. Wolli013

    Wolli013 Active Member Licensed User

    Is it possible also to insert bitmaps?
  4. Erel

    Erel Administrator Staff Member Licensed User

    The title item can be made of any layout you like.
    Peter Simpson and Wolli013 like 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