Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置成不可用状态(即将全部元素改变成灰色) #156

Open
Yu1yuyu opened this issue Feb 1, 2021 · 0 comments
Open

设置成不可用状态(即将全部元素改变成灰色) #156

Yu1yuyu opened this issue Feb 1, 2021 · 0 comments

Comments

@Yu1yuyu
Copy link

Yu1yuyu commented Feb 1, 2021

rsRangeSeekBar.progressColor = ContextCompat.getColor(this, R.color.declub_text_gray)
rsRangeSeekBar.progressDefaultColor = ContextCompat.getColor(this, R.color.declub_text_gray)
rsRangeSeekBar.tickMarkTextColor = ContextCompat.getColor(this, R.color.declub_text_gray)
// 将自定义stepDrawable全部改变成灰色
val stepsBitmaps = mutableListOf().apply {
rsRangeSeekBar.stepsBitmaps.forEach { stepsBitmap ->
CommonUtils.replaceBitmapColor(
stepsBitmap,
Color.WHITE,
Color.parseColor("#9E9E9E")
)?.let {
add(it)
}
}
}
if (stepsBitmaps.isNotEmpty()) {
rsRangeSeekBar.stepsBitmaps = stepsBitmaps
}
我直接设置不生效,但是将rangeSeekBar先setVisibility(View.Gone)再显示会生效。
求原因 或者其他方式修改全部元素颜色

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant