Search in sources :

Example 1 with SongsPresenter

use of com.cyl.musiclake.ui.music.local.presenter.SongsPresenter in project MusicLake by caiyonglong.

the class SongsFragment method initViews.

@Override
public void initViews() {
    mPresenter = new SongsPresenter(getActivity());
    mPresenter.attachView(this);
    mAdapter = new SongAdapter(musicList);
    mAdapter.openLoadAnimation(BaseQuickAdapter.SCALEIN);
    mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
    mRecyclerView.setAdapter(mAdapter);
    mAdapter.bindToRecyclerView(mRecyclerView);
}
Also used : SongsPresenter(com.cyl.musiclake.ui.music.local.presenter.SongsPresenter) SongAdapter(com.cyl.musiclake.ui.music.local.adapter.SongAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 SongAdapter (com.cyl.musiclake.ui.music.local.adapter.SongAdapter)1 SongsPresenter (com.cyl.musiclake.ui.music.local.presenter.SongsPresenter)1