private fun getBackgroundColor(): Int {
var bgColor = Color.parseColor("#000000")
if (backgroundColorTv.background is ColorDrawable) {
val colorDrawable = backgroundColorTv.background as ColorDrawable
bgColor = colorDrawable.color
}
return bgColor
}
Gets the background color of the control Andrews
Guess you like
Origin blog.csdn.net/yinxing2008/article/details/104049743
Ranking