0

How can i refresh the GridView inside a fragment of a view pager?

  1. I have already tried using adapter.notifyDatasetChanged() , but that's not working .
  2. I want to delete the elements from gridView and refresh the grid view.
  3. I am removing the elements from the 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.

4

1 回答 1

2

好的,当滚动回带有网格视图的片段时,在 PageChangeListener 上重新填充 viewpager 内的网格

于 2013-08-20T12:50:20.053 回答