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
}
制御アンドリュースの背景色を取得します。
おすすめ
転載: blog.csdn.net/yinxing2008/article/details/104049743
おすすめ
ランキング