Android Question CLVSwipe. Swipe right/left and Material Iconcs

red30

Active Member
Licensed User
Is it possible to use right and left shift at the same time? If so, how can this be done?
I tried to set the "icon" instead of the text, but it is not displayed.
B4X:
CustomListView1.AddTextItem(cs, Swipe.CreateItemValue("", Array(Chr(0xF0EE), "text")))
Why? Is it possible to use “Material Iconcs” and a picture instead of text?
 

Erel

Administrator
Staff member
Licensed User
CLVSwipe only supports swiping from the right to the left.

Is it possible to use “Material Iconcs” and a picture instead of text?
Yes. Two options:

1. Modify CreateActionButtons and set the font with XUI.CreateMaterialIcons.
2. Modify CreateActionButtons and set the type of action iterator to Object. This will allow you to pass CSBuilders instead of simple strings and set the font. You do need to test it as it can has other effects.
 
Top