I'm wondering if it is possible to rerender just one element in a listview? I assume by calling notifyDatasetChanged()
is gonna rerender the whole list?
Thanks,
you can't render (refresh) a single row, but instead you can get the requested view and make chages on it directly by calling yourListView.getChildAt(int VisiblePosition);
where the visiblePostion is the position in the ListView minus yourListView.getFirstVisiblePosition()
Like this :
View v = listViewItems.getChildAt(position - listViewItems.getFirstVisiblePosition()); v.setBackgroundColor(Color.GREEN);
I hope this helps...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With