更新界面
This commit is contained in:
1 parent
06dd2ac2c1
commit
c35177715c
21 files changed
+745
-469
No files matched your search
@@ -143,8 +143,6 @@ class SimpleCounterView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private fun updateValue() {
|
||||
binding.tvSeekValue.text = valueFormat?.invoke(_progress) ?: _progress.toString()
|
||||
}
|
||||
@@ -185,4 +183,12 @@ class SimpleCounterView @JvmOverloads constructor(
|
||||
super.onDetachedFromWindow()
|
||||
}
|
||||
|
||||
override fun setEnabled(enabled: Boolean) {
|
||||
super.setEnabled(enabled)
|
||||
binding.tvSeekTitle.isEnabled = enabled
|
||||
binding.ivSeekPlus.isEnabled = enabled
|
||||
binding.ivSeekReduce.isEnabled = enabled
|
||||
binding.tvSeekValue.isEnabled = enabled
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user