fun getBackgroundColor(view: View): Int {
var bgColor = Color.parseColor("#000000")
if (view.background is ColorDrawable) {
val colorDrawable = view.background as ColorDrawable
bgColor = colorDrawable.color
}
return bgColor
}
fun getBackgroundColor(view: View): Int {
var bgColor = Color.parseColor("#000000")
if (view.background is ColorDrawable) {
val colorDrawable = view.background as ColorDrawable
bgColor = colorDrawable.color
}
return bgColor
}
下一篇:安卓播放本地和网络视频
一、问题描述 &nbs
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M