안녕하세요 .
리스트뷰에다가 add해서 추가 데이터를 계속 로딩하여 보여주고 있습니다.
리스트 패스트 스크롤 을 달아서 밑으로 빠르게 스크롤을 하면
llegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
이런메시지가 나오는군요,
계속나오진않고 빠른 조작을 했을경우 간헐적으로 발생합니다.
조사해본결과
runOnUiThread(new Runnable() {
@Override
public void run() {
mAdapter.notifyDataSetChanged();
}
});
와 같은 방법으로 하던지 스레드에 인터벌을 주던지 하라는데
fast스크롤로 빨리 조작하니 그래도 에러가 나네요...
notifyDataSetChanged을 어떻게 불러와야 에러 가 안날까요??
부탁드립니다.