Thursday, December 15, 2011

How can We Redraw a single row in a listview


if you are updating the position "position" in the row.
            if (position >= listView.getFirstVisiblePosition()
                && position <= listView.getLastVisiblePosition()) {

                    runOnUiThread(new Runnable() {
                        @Override
                        public void run() {
                            listView.invalidateViews();
                        }
                    });
            }

No comments:

Post a Comment