프로그래밍/Android
[Android] Adapter.notifyDataSetChanged()
DwEnn
2017. 9. 29. 00:23
728x90
반응형
Android Developer
notifyDataSetChanged
void notifyDataSetChanged ()
Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.
Adapter
Android APIs' Reference에 따르면
'Adapter' 자체는 하나의 Object로서, 보여지는 View와 그 View에 올릴
Data를 연결하는 일종의 Bridge라고 한다
+
내가 이해하기론
list.setAdatper(adapter);
를 통해 Activity와 Adapter를 연결해 주기 때문에
adpter.notifyDataSetChanged를 하면
따로 데이터를 넘겨주지 않아도 갱신을 하는듯 하다
반응형