use of com.github.anrimian.musicplayer.ui.settings.themes.ThemeSettingsFragment in project music-player by Anrimian.
the class SettingsFragment method onViewCreated.
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
AdvancedToolbar toolbar = requireActivity().findViewById(R.id.toolbar);
navigation = FragmentNavigation.from(getParentFragmentManager());
viewBinding.tvDisplay.setOnClickListener(v -> navigation.addNewFragment(new DisplaySettingsFragment()));
viewBinding.tvLibrary.setOnClickListener(v -> navigation.addNewFragment(new LibrarySettingsFragment()));
viewBinding.tvPlayer.setOnClickListener(v -> navigation.addNewFragment(new PlayerSettingsFragment()));
viewBinding.tvTheme.setOnClickListener(v -> navigation.addNewFragment(new ThemeSettingsFragment()));
viewBinding.tvHeadset.setOnClickListener(v -> navigation.addNewFragment(new HeadsetSettingsFragment()));
viewBinding.llRunRescanStorage.setOnClickListener(v -> onRescanStorageButtonClicked());
SlidrPanel.simpleSwipeBack(viewBinding.flContainer, this, toolbar::onStackFragmentSlided);
}
Aggregations