How can i update items in panel?
For example: i have 300 items in clvMaster list and when apk start it fills 300 items in clvMaster using:
That works great...i have the following labels in each panel:
I have tried using removeitemat and insertitem at but i have duplicate panels, and would like to avoid this...can be added in this excellent class function:
So the idea is to not remove existing panels in list witch is generated at apk start, only to update labels in existing panels at index....can erel or someone posto here code how to do that with this excellent class?
For example: i have 300 items in clvMaster list and when apk start it fills 300 items in clvMaster using:
B4X:
clvMaster.InsertAt(ScrolledChannel, CreateChannelListMaster(ScrolledChannel, clvMasterCh.AsView.Width, 167dip, Channels(ScrolledChannel,3), Channels(ScrolledChannel,2), EPGs(ScrolledChannel,0), EPGs(ScrolledChannel,1), EPGs(ScrolledChannel,2), EPGs(ScrolledChannel,3)), 167dip, ScrolledChannel)
B4X:
'UPDATE - EPGlblEPGName.Text = EPGs(ScrolledChannel,0)
lblEPGStart.Text = EPGs(ScrolledChannel,1).SubString2(11, 16)
lblEPGStop.Text = EPGs(ScrolledChannel,2).SubString2(11, 16)
lblEPGDesc.Text = EPGs(ScrolledChannel,3)
B4X:
Sub UpdateItemsAtPanel(Index As Int, Pnl AsPanel, ItemHeight As Int, Value As Object, lblEPGName, lblEPGStart, lblEPGStop, lblEPGDesc AsString)'UPDATE - EPGpanel(index).lblEPGName.Text = lblEPGNamepanel(index).lblEPGStart.Text = lblEPGStartpanel(index).lblEPGStop.Text = lblEPGStartpanel(index).lblEPGDesc.Text = lblEPGDescEnd Sub
