mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Added appbar in the bottom_sheet player
This commit is contained in:
parent
21b7d4b8bb
commit
5285614171
4 changed files with 62 additions and 15 deletions
|
|
@ -74,6 +74,7 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||
|
||||
playerBottomSheetViewModel = new ViewModelProvider(requireActivity()).get(PlayerBottomSheetViewModel.class);
|
||||
|
||||
init();
|
||||
initQueueSlideView();
|
||||
initQueueRecyclerView();
|
||||
initFavoriteButtonClick();
|
||||
|
|
@ -120,6 +121,15 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||
bind = null;
|
||||
}
|
||||
|
||||
private void init() {
|
||||
bodyBind.playerMoveDownBottomSheet.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
activity.collapseBottomSheet();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void initQueueSlideView() {
|
||||
bodyBind.playerSongCoverViewPager.setOrientation(ViewPager2.ORIENTATION_HORIZONTAL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue