Example usage for android.support.v4.widget StaggeredGridView setId

List of usage examples for android.support.v4.widget StaggeredGridView setId

Introduction

In this page you can find the example usage for android.support.v4.widget StaggeredGridView setId.

Prototype

public void setId(@IdRes int id) 

Source Link

Document

Sets the identifier for this view.

Usage

From source file:com.handmark.pulltorefresh.library.PullToRefreshStaggeredGridView.java

@Override
protected StaggeredGridView createRefreshableView(Context context, AttributeSet attrs) {
    StaggeredGridView gridView;

    if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
        gridView = new InternalStaggeredGridViewSDK9(context, attrs);
    } else {/*from  w w  w. j  a  v a2  s  .c om*/
        gridView = new StaggeredGridView(context, attrs);
    }

    gridView.setId(R.id.gridview);
    return gridView;
}