Search in sources :

Example 1 with DownloadPresenter

use of com.cyl.musiclake.ui.music.online.presenter.DownloadPresenter in project MusicLake by caiyonglong.

the class DownloadedFragment method initViews.

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

Aggregations

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