android - How do I refresh connected fragments accordingly? -
i'm making simple notepad app. in 1 fragment there's list view of added notes , when note selected other fragment shows details of note. if user clicks delete button note deleted, how refresh list view , detail view accordingly?
for refreshing listview
have refresh underlaying adapter
.
this workflow of scenario:
- remove selected item
- call
notifydatasetchanged()
- set item current one, example previous note or first one.
and that's it.
Comments
Post a Comment