Added scroll animation
This commit is contained in:
parent
1932ba219e
commit
5038f9afa1
13 changed files with 684 additions and 567 deletions
|
@ -149,8 +149,10 @@ class BannerHomeFragment : AbsMainActivityFragment(), MainActivityFragmentCallba
|
|||
}
|
||||
|
||||
private fun setupToolbar() {
|
||||
|
||||
toolbar.apply {
|
||||
backgroundTintList = ColorStateList.valueOf(ATHUtil.resolveColor(requireContext(), R.attr.colorSurface))
|
||||
backgroundTintList =
|
||||
ColorStateList.valueOf(ATHUtil.resolveColor(requireContext(), R.attr.colorSurface))
|
||||
setNavigationIcon(R.drawable.ic_menu_white_24dp)
|
||||
setOnClickListener {
|
||||
val options = ActivityOptions.makeSceneTransitionAnimation(
|
||||
|
|
|
@ -32,7 +32,6 @@ import kotlinx.android.synthetic.main.fragment_main_settings.aboutSettings
|
|||
import kotlinx.android.synthetic.main.fragment_main_settings.audioSettings
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.buyPremium
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.buyProContainer
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.container
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.diamondIcon
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.generalSettings
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.imageSettings
|
||||
|
@ -40,6 +39,7 @@ import kotlinx.android.synthetic.main.fragment_main_settings.notificationSetting
|
|||
import kotlinx.android.synthetic.main.fragment_main_settings.nowPlayingSettings
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.otherSettings
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.personalizeSettings
|
||||
import kotlinx.android.synthetic.main.fragment_main_settings.scrollView
|
||||
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper
|
||||
|
||||
class MainSettingsFragment : Fragment(), View.OnClickListener {
|
||||
|
@ -88,7 +88,7 @@ class MainSettingsFragment : Fragment(), View.OnClickListener {
|
|||
buyPremium.setTextColor(it)
|
||||
diamondIcon.imageTintList = ColorStateList.valueOf(it)
|
||||
}
|
||||
OverScrollDecoratorHelper.setUpOverScroll(container)
|
||||
OverScrollDecoratorHelper.setUpOverScroll(scrollView)
|
||||
}
|
||||
|
||||
private fun inflateFragment(fragment: Fragment, @StringRes title: Int) {
|
||||
|
|
|
@ -22,7 +22,6 @@ import androidx.preference.TwoStatePreference
|
|||
import code.name.monkey.retromusic.R
|
||||
import code.name.monkey.retromusic.util.PreferenceUtil
|
||||
|
||||
|
||||
class PersonalizeSettingsFragment : AbsSettingsFragment(), SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
|
||||
override fun invalidateSettings() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue