안드로이드 개발 질문/답변
(글 수 45,052)
doInBackground 으로 xml 리스트 가져오는 기능을 구현했습니다..
문제는 더보기를 한번누를 때는 상관없는데요..
리스트뷰에서 이미지가 다 안받아지거나 연속으로 더보기를 누르면 요 오류가나는데요 어떻게 해줘야 좋을까요?
아래처럼 오류메지시가 나오더라구요 선배님들 조언 부탁드려요 ^^
java.lang.IllegalStateException: 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. [in ListView(16908298, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]
플래그 이용해서 클릭시 false를 주고, xml 리스트 가져오면 true로 변경해 주면 어떨까요?