|
|
@ -71,6 +71,13 @@ class HealthFamilyAdapter: BaseAdapter<FamilyHealthBean>(R.layout.item_health_fa
|
|
|
|
tvPower.text = "--%"
|
|
|
|
tvPower.text = "--%"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(item.isRealTime == 1){
|
|
|
|
|
|
|
|
holder.setGone(R.id.tv_current_time,false)
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
holder.setGone(R.id.tv_current_time,true)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val drawableLeft = context.resources.getDrawable(R.mipmap.icon_power_green)
|
|
|
|
val drawableLeft = context.resources.getDrawable(R.mipmap.icon_power_green)
|
|
|
|
drawableLeft.setBounds(0,0,drawableLeft.minimumWidth,drawableLeft.minimumHeight)
|
|
|
|
drawableLeft.setBounds(0,0,drawableLeft.minimumWidth,drawableLeft.minimumHeight)
|
|
|
|