Search in sources :

Example 1 with AlbumAdapter

use of com.yydcdut.note.adapter.recycler.AlbumAdapter in project PhotoNoter by yydcdut.

the class AlbumFragment method setAdapter.

@Override
public void setAdapter(List<PhotoNote> photoNoteList) {
    int size = Utils.sScreenWidth / mAlbumPresenter.calculateGridNumber();
    mAdapter = new AlbumAdapter(getContext(), photoNoteList, size, this, this);
    mRecyclerView.setAdapter(mAdapter);
    mRecyclerView.addOnScrollListener(mScrollListener);
}
Also used : Point(android.graphics.Point) AlbumAdapter(com.yydcdut.note.adapter.recycler.AlbumAdapter)

Aggregations

Point (android.graphics.Point)1 AlbumAdapter (com.yydcdut.note.adapter.recycler.AlbumAdapter)1