Android Question how to get the index from xcustomlistview in b4xswitch?

MbedAndroid

Well-Known Member
Licensed User
Longtime User
with the b4exviews switch i can do this operation:
B4X:
Private value As Object = MenuList.GetValue(MenuList.GetItemFromView(Sender))
i'm using this in a customlistview with multiple switches. To get which switch has been moved in the customlistview i use this code.

But when i switch to b4xswitch the code in customlistview crashes.
There must be a way to figure out which switch has been moved
The switch is dropped on a layout with panel, icon and text. so every line loads this layout. All the switches will have the same name.

Anyone did this before?
crashreport
 
Last edited:

mangojack

Expert
Licensed User
Longtime User
Possible solution ...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…