Reputation: 139
How can i refresh the GridView
inside a fragment of a view pager?
adapter.notifyDatasetChanged()
, but that's not working .gridView
and refresh the grid view.arrayList
and gridvIew.getCount()
shows decreased values but it shows the deleted values in grid view , How can I update/refresh the gridView
?The layout of fragement is dynamically created so no fragemt tag to findfragement by id.
Upvotes: 0
Views: 773
Reputation: 446
Ok while scrolling back to the fragment with grid view repopulate the grid inside viewpager on PageChangeListener
Upvotes: 2