How can i refresh the GridView
inside a fragment of a view pager?
- I have already tried using
adapter.notifyDatasetChanged()
, but that's not working . - I want to delete the elements from
gridView
and refresh the grid view. - I am removing the elements from the
arrayList
andgridvIew.getCount()
shows decreased values but it shows the deleted values in grid view , How can I update/refresh thegridView
?
The layout of fragement is dynamically created so no fragemt tag to findfragement by id.