|
|
@ -64,7 +64,9 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) { |
|
|
|
ivStop.setColorFilter(textColor) |
|
|
|
ivStop.setColorFilter(textColor) |
|
|
|
ivTimer.setColorFilter(textColor) |
|
|
|
ivTimer.setColorFilter(textColor) |
|
|
|
tvTimer.setTextColor(textColor) |
|
|
|
tvTimer.setTextColor(textColor) |
|
|
|
|
|
|
|
ivTtsSpeechReduce.setColorFilter(textColor) |
|
|
|
tvTtsSpeed.setTextColor(textColor) |
|
|
|
tvTtsSpeed.setTextColor(textColor) |
|
|
|
|
|
|
|
ivTtsSpeechAdd.setColorFilter(textColor) |
|
|
|
ivCatalog.setColorFilter(textColor) |
|
|
|
ivCatalog.setColorFilter(textColor) |
|
|
|
tvCatalog.setTextColor(textColor) |
|
|
|
tvCatalog.setTextColor(textColor) |
|
|
|
ivMainMenu.setColorFilter(textColor) |
|
|
|
ivMainMenu.setColorFilter(textColor) |
|
|
@ -112,6 +114,16 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) { |
|
|
|
seekTtsSpeechRate.isEnabled = !isChecked |
|
|
|
seekTtsSpeechRate.isEnabled = !isChecked |
|
|
|
upTtsSpeechRate() |
|
|
|
upTtsSpeechRate() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ivTtsSpeechReduce.setOnClickListener { |
|
|
|
|
|
|
|
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate - 1 |
|
|
|
|
|
|
|
AppConfig.ttsSpeechRate = AppConfig.ttsSpeechRate - 1 |
|
|
|
|
|
|
|
upTtsSpeechRate() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ivTtsSpeechAdd.setOnClickListener { |
|
|
|
|
|
|
|
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate + 1 |
|
|
|
|
|
|
|
AppConfig.ttsSpeechRate = AppConfig.ttsSpeechRate + 1 |
|
|
|
|
|
|
|
upTtsSpeechRate() |
|
|
|
|
|
|
|
} |
|
|
|
//设置保存的默认值 |
|
|
|
//设置保存的默认值 |
|
|
|
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate |
|
|
|
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate |
|
|
|
seekTtsSpeechRate.setOnSeekBarChangeListener(object : SeekBarChangeListener { |
|
|
|
seekTtsSpeechRate.setOnSeekBarChangeListener(object : SeekBarChangeListener { |
|
|
|