iOS Tutorial [B4X] CustomListView with multiple ImageSliders

Discussion in 'iOS Tutorials' started by Erel, Sep 14, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Example of creating a xCustomListView with multiple ImageSliders (


    The items values are set to a custom type that holds the ImageSlider and the list of images. Each slider can have a different list of images.

    ImageSlider.Tag is set to the item index. The image is returned with:
    Sub ImageSlider1_GetImage (Index As Int) As ResumableSub
    Dim slider As ImageSlider = Sender
    Dim IndexInList As Int = slider.Tag
    Dim si As SliderAndImages = CustomListView1.GetValue(IndexInList)
    Dim bmp As B4XBitmap = si.Images.Get(Index)
    Return bmp
    End Sub

    Attached Files:

  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