M Makumbi Well-Known Member Licensed User Jun 27, 2019 #1 B4X: Sub CustomListView1_ItemClick (Index As Int, Value As Object) Log(Value) End Sub the above code gives me an empty value B4X: CustomListView1.AddTextItem(cs.Initialize.Typeface(Typeface.MATERIALICONS).Size(22).VerticalAlign(3dip).Append(Chr(0xE84F)).PopAll.Append("Profile").PopAll, "") i wanted to get the word Profile from the list please help
B4X: Sub CustomListView1_ItemClick (Index As Int, Value As Object) Log(Value) End Sub the above code gives me an empty value B4X: CustomListView1.AddTextItem(cs.Initialize.Typeface(Typeface.MATERIALICONS).Size(22).VerticalAlign(3dip).Append(Chr(0xE84F)).PopAll.Append("Profile").PopAll, "") i wanted to get the word Profile from the list please help
aeric Expert Licensed User Longtime User Jun 27, 2019 #2 B4X: CustomListView1.AddTextItem(cs.Initialize.Typeface(Typeface.MATERIALICONS).Size(22).VerticalAlign(3dip).Append(Chr(0xE84F)).PopAll.Append("Profile").PopAll I think this is not the right way to add item into CustomListview. Follow the tutorial. Upvote 0
B4X: CustomListView1.AddTextItem(cs.Initialize.Typeface(Typeface.MATERIALICONS).Size(22).VerticalAlign(3dip).Append(Chr(0xE84F)).PopAll.Append("Profile").PopAll I think this is not the right way to add item into CustomListview. Follow the tutorial.
Erel B4X founder Staff member Licensed User Longtime User Jun 27, 2019 #3 The second parameter in AddTextItem is the item's value. You set it to be an empty string. Upvote 0