Example usage for android.support.v4.widget CursorAdapter notifyDataSetChanged

List of usage examples for android.support.v4.widget CursorAdapter notifyDataSetChanged

Introduction

In this page you can find the example usage for android.support.v4.widget CursorAdapter notifyDataSetChanged.

Prototype

public void notifyDataSetChanged() 

Source Link

Document

Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.

Usage

From source file:com.laevatein.internal.ui.helper.PhotoGridViewHelper.java

public static void refreshView(Fragment fragment) {
    GridView gridView = (GridView) fragment.getView().findViewById(R.id.l_grid_photo);
    CursorAdapter adapter = (CursorAdapter) gridView.getAdapter();
    adapter.notifyDataSetChanged();
}