Android Question [B4X] [XUI] CLV set clickable item

Discussion in 'Android Questions' started by yiankos1, May 17, 2018 at 9:24 AM.

  1. yiankos1

    yiankos1 Active Member Licensed User

    Hello forum,
    Is it possible to to create a non clickable item at b4x CLV?
    Thank you for your time.
     
  2. LucaMs

    LucaMs Expert Licensed User

    Maybe adding this routine to xCLV?

    Code:
    Public Sub SetItemEnabled(ItemIndex As Int, Enable As Boolean)
        
    Dim Item As CLVItem = GetItem(ItemIndex)
        Item.Panel.Enabled = Enable
    End Sub
    Not tested enough; I need the Erel's approval :)
     
    Erel and yiankos1 like this.
  3. yiankos1

    yiankos1 Active Member Licensed User

    Indeed, that worked! Thank you!
     
    LucaMs likes this.
Loading...