use of com.freedom.lauzy.ticktockmusic.ui.adapter.PlayQueueAdapter in project TicktockMusic by Lauzy.
the class PlayQueueBottomSheetFragment method setUpRv.
private void setUpRv(View view) {
RecyclerView rvPlayQueue = (RecyclerView) view.findViewById(R.id.rv_play_queue);
rvPlayQueue.setLayoutManager(new LinearLayoutManager(mActivity));
((SimpleItemAnimator) rvPlayQueue.getItemAnimator()).setSupportsChangeAnimations(false);
mAdapter = new PlayQueueAdapter(R.layout.layout_play_queue_item, mSongEntities);
rvPlayQueue.setAdapter(mAdapter);
mAdapter.setDeleteQueueItemListener(this);
String[] curIds = MusicManager.getInstance().getCurIds();
mQueuePresenter.loadQueueData(curIds);
}
Aggregations