You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dataList.forEachIndexed { index, data ->
val layout: ConstraintLayout =
inflater.inflate(
R.layout.progress_item,
null,
false
) as ConstraintLayout
val leftLine = layout.findViewById<RoundCornerProgressBar>(R.id.left_line)
leftLine.progressColor = Color.parseColor(data.leftColor)
val rightLine = layout.findViewById<RoundCornerProgressBar>(R.id.right_line)
rightLine.progressColor = Color.parseColor(data.rightColor)
content.addView(layout)
}
That works perfectly fine. But when system style changed to Day/Night all RoundCornerProgressBar items apply the last color in dataList. Other views in R.layout.progress_item works fine and apply correct color.
The text was updated successfully, but these errors were encountered:
I have
That works perfectly fine. But when system style changed to Day/Night all RoundCornerProgressBar items apply the last color in dataList. Other views in R.layout.progress_item works fine and apply correct color.
The text was updated successfully, but these errors were encountered: