Search in sources :

Example 1 with ExcludedFolderAdapter

use of com.github.anrimian.musicplayer.ui.settings.folders.view.ExcludedFolderAdapter in project music-player by Anrimian.

the class ExcludedFoldersFragment method onViewCreated.

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    AdvancedToolbar toolbar = requireActivity().findViewById(R.id.toolbar);
    toolbar.setTitle(R.string.excluded_folders);
    toolbar.setSubtitle(null);
    toolbar.setTitleClickListener(null);
    adapter = new ExcludedFolderAdapter(recyclerView, presenter::onDeleteFolderClicked);
    recyclerView.setAdapter(adapter);
    recyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
    SlidrPanel.simpleSwipeBack(clContainer, this, toolbar::onStackFragmentSlided);
}
Also used : ExcludedFolderAdapter(com.github.anrimian.musicplayer.ui.settings.folders.view.ExcludedFolderAdapter) AdvancedToolbar(com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar) LinearLayoutManager(androidx.recyclerview.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)1 AdvancedToolbar (com.github.anrimian.musicplayer.ui.common.toolbar.AdvancedToolbar)1 ExcludedFolderAdapter (com.github.anrimian.musicplayer.ui.settings.folders.view.ExcludedFolderAdapter)1