Get icon width from xml resource

This commit is contained in:
Naveen 2022-10-01 01:46:26 +05:30
parent 3fa03b2998
commit 9284859b8b
1 changed files with 3 additions and 4 deletions

View File

@ -335,10 +335,9 @@ class ThreadAdapter(
thread_message_scheduled_icon.beVisible()
thread_message_scheduled_icon.applyColorFilter(contrastColor)
thread_message_scheduled_icon.onGlobalLayout {
val rightPadding = padding + thread_message_scheduled_icon.measuredWidth
val iconWidth = resources.getDimensionPixelSize(R.dimen.small_icon_size)
val rightPadding = padding + iconWidth
thread_message_body.setPadding(padding, padding, rightPadding, padding)
}
thread_message_body.typeface = Typeface.create(Typeface.DEFAULT, Typeface.ITALIC)
} else {
thread_message_scheduled_icon.beGone()