i have a listview that contains an custom control
my custom control have progress bar in it and i want change the value of progress bar.
int iRowCount = 0;
CMessage processMessage = null;
for (CMessage msg : m_msgList)
{
iRowCount ++;
if(msg._id == iMessageId)
{
processMessage = msg;
break;
}
}
if(processMessage == null)
return;
if(!processMessage.MessageType.equals(AttachType.Video.name()))
if(!processMessage.MessageType.equals(AttachType.Audio.name()))
return;
int rowPosition = iRowCount;
View v = lstMessage.getChildAt(rowPosition);
View updateView = lstMessage.getAdapter().getView(rowPosition - 1, v, lstMessage);
ILSpeechBubble sBubble = (ILSpeechBubble) updateView.findViewById(R.id.iLSpeechBubble1);
if(sBubble.getMessageId() == iMessageId)
{
iProgress = sBubble.getProgress();
if(iProgress == 100)
m_Downloading = false;
else
iProgress += 1;
sBubble.SetProgress(iProgress);
sBubble.postInvalidate();
updateView.postInvalidate();
}
with this code i can get the row that must changed the progress value
but i cant refresh the layout and progress not changed in ui
but when i scroll the listview, progress value changed.!
and i'dont want to use notifydatasetchanged().
tnx 4 any help