Search in sources :

Example 1 with ArtistSongAdapter

use of io.hefuyi.listener.ui.adapter.ArtistSongAdapter in project ListenerMusicPlayer by hefuyicoder.

the class ArtistMusicFragment method onViewCreated.

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    ButterKnife.bind(this, view);
    ATE.apply(this, ATEUtil.getATEKey(getActivity()));
    songsRecyclerview.setLayoutManager(new LinearLayoutManager(getActivity()));
    songsRecyclerview.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST, true));
    mSongAdapter = new ArtistSongAdapter(getActivity(), null, artistID);
    songsRecyclerview.setAdapter(mSongAdapter);
    mPresenter.subscribe(artistID);
    subscribeMetaChangedEvent();
}
Also used : ArtistSongAdapter(io.hefuyi.listener.ui.adapter.ArtistSongAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) DividerItemDecoration(io.hefuyi.listener.widget.DividerItemDecoration)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 ArtistSongAdapter (io.hefuyi.listener.ui.adapter.ArtistSongAdapter)1 DividerItemDecoration (io.hefuyi.listener.widget.DividerItemDecoration)1