Updated to v. 1.31 03/30/2022
Fixed: ItemRemoved declaration correct.
Updated to v. 1.30
Added internal dialog (optional) to ask for confirmation of removal and many properties about this, included one to choose whether to use this dialog or not.
Added the CLVItemToolbox1_ItemRemoved (Value As Object) event; this will be triggered if the internal dialog is used, otherwise the other event will trigger, CLVItemToolbox1_Click.
See post #13 and next.
UPDATED TO V. 1.20
Added the ability to blink icons (being able to set which ones) and temporarily disable blinking of the entire item.
You can also set how many times an icon should blink and the duration of the single blink.
The attached sample project has also been updated.
I was thinking... then I developed it.
It's free but don't forget I need coffee to live
It's a custom view for B4A, B4J, B4I; a B4XLib that you should add to the Additional Libraries folder.
I shouldn't be doing these things overnight; in fact, I shouldn't do them at all ?
B4A-Android
[Another example and discussion here]
I think its purpose and use are simple; when you create an item layout for your xCustomListView in the Designer, add this CLVItemToolbox like any other view.
You can choose which of the 3 icons to display (Check, Edit, Remove) and change the images if you don't like them.
By clicking/tapping on the CLVItemToolbox the Click event will be triggered, which will receive as parameters the type of action (CHECKED, UNCHECKED, EDIT, REMOVE) and the base of the custom view, which will be useful for obtaining the index of the relative item:
Library and sample project are attached.
Fixed: ItemRemoved declaration correct.
Updated to v. 1.30
Added internal dialog (optional) to ask for confirmation of removal and many properties about this, included one to choose whether to use this dialog or not.
Added the CLVItemToolbox1_ItemRemoved (Value As Object) event; this will be triggered if the internal dialog is used, otherwise the other event will trigger, CLVItemToolbox1_Click.
See post #13 and next.
UPDATED TO V. 1.20
Added the ability to blink icons (being able to set which ones) and temporarily disable blinking of the entire item.
You can also set how many times an icon should blink and the duration of the single blink.
The attached sample project has also been updated.
I'm thinking maybe a custom view like this would be useful:
to be added to each item of a CustomListView.
The icons would serve, in order, to:
- select the item
- modify the item
- delete the item.
I was thinking... then I developed it.
It's free but don't forget I need coffee to live
It's a custom view for B4A, B4J, B4I; a B4XLib that you should add to the Additional Libraries folder.
I shouldn't be doing these things overnight; in fact, I shouldn't do them at all ?
B4A-Android
[Another example and discussion here]
I think its purpose and use are simple; when you create an item layout for your xCustomListView in the Designer, add this CLVItemToolbox like any other view.
You can choose which of the 3 icons to display (Check, Edit, Remove) and change the images if you don't like them.
By clicking/tapping on the CLVItemToolbox the Click event will be triggered, which will receive as parameters the type of action (CHECKED, UNCHECKED, EDIT, REMOVE) and the base of the custom view, which will be useful for obtaining the index of the relative item:
B4X:
Private Sub CLVItemToolbox1_Click(Action As String, Base As B4XView)
Dim ItemIndex As Int
ItemIndex = CustomListView1.GetItemFromView(Base)
Select Action
Case CLVItemToolbox1.CHECKED
Case CLVItemToolbox1.UNCHECKED
Case CLVItemToolbox1.EDIT
Case CLVItemToolbox1.REMOVE
End Select
End Sub
Library and sample project are attached.
Attachments
Last edited: