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();
}
Aggregations