Android Question Lock listview single item

Croïd

Active Member
Licensed User
Longtime User
Is it possible to lock in a listview a single item click?

If Position = 0 Then
ToastMessageShow("authorized !",False)
Else If Position = 1 Then
after 1 click (position 1 .enabled = false)
Else If Position = 2 Then
ToastMessageShow("authorized !",False)
End If
 
Last edited:

Croïd

Active Member
Licensed User
Longtime User
deactivate item (not all items) after 1 click

Otherwise I will take an alternative with a switch

B4X:
Sub ACSwitch1_CheckedChange(Checked As Boolean)
    If ACSwitch1.Checked = True Then
    ACSwitch1.Enabled = false
    End If
End Sub
 
Upvote 0
Top