Search in sources :

Example 1 with PlayQueueAdapter

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);
}
Also used : SimpleItemAnimator(android.support.v7.widget.SimpleItemAnimator) PlayQueueAdapter(com.freedom.lauzy.ticktockmusic.ui.adapter.PlayQueueAdapter) RecyclerView(android.support.v7.widget.RecyclerView) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 RecyclerView (android.support.v7.widget.RecyclerView)1 SimpleItemAnimator (android.support.v7.widget.SimpleItemAnimator)1 PlayQueueAdapter (com.freedom.lauzy.ticktockmusic.ui.adapter.PlayQueueAdapter)1