优化
This commit is contained in:
1 file changed
+1
-13
@@ -538,19 +538,7 @@ class AudioPlayActivity :
|
|||||||
binding.cdTimer.setCardBackgroundColor(colorSurfaceContainer)
|
binding.cdTimer.setCardBackgroundColor(colorSurfaceContainer)
|
||||||
binding.cdSpeed.setCardBackgroundColor(colorSurfaceContainer)
|
binding.cdSpeed.setCardBackgroundColor(colorSurfaceContainer)
|
||||||
|
|
||||||
val states = arrayOf(
|
val stateList = ColorStateList.valueOf(colorOnSurface)
|
||||||
intArrayOf(android.R.attr.state_enabled, android.R.attr.state_checked),
|
|
||||||
intArrayOf(android.R.attr.state_enabled, -android.R.attr.state_checked),
|
|
||||||
intArrayOf(-android.R.attr.state_enabled)
|
|
||||||
)
|
|
||||||
|
|
||||||
val colors = intArrayOf(
|
|
||||||
colorSurface,
|
|
||||||
colorOnSurface,
|
|
||||||
colorOnSurface.copy(alpha = 0.3f)
|
|
||||||
)
|
|
||||||
|
|
||||||
val stateList = ColorStateList(states, colors)
|
|
||||||
listOf(
|
listOf(
|
||||||
binding.ivSkipNext, binding.ivSkipPrevious, binding.ivPlayMode, binding.ivTimer,
|
binding.ivSkipNext, binding.ivSkipPrevious, binding.ivPlayMode, binding.ivTimer,
|
||||||
binding.ivChapter, binding.ivFastForward, binding.btnReset, binding.fabPlayStop
|
binding.ivChapter, binding.ivFastForward, binding.btnReset, binding.fabPlayStop
|
||||||
|
|||||||
Reference in new issue
Block a user