fix avatar voter border

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-07-28 23:15:18 +02:00
parent bb822aa1a4
commit 0a3e0230c9
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 5 additions and 3 deletions

View file

@ -72,10 +72,10 @@ class PollResultVotersOverviewViewHolder(
roundingParams.roundAsCircle = true
roundingParams.borderColor = ResourcesCompat.getColor(
itemView.context.resources!!,
R.color.colorPrimary,
R.color.vote_dialog_background,
null
)
roundingParams.borderWidth = 2.0f
roundingParams.borderWidth = DisplayUtils.convertDpToPixel(2.0f, itemView.context)
avatar.hierarchy.roundingParams = roundingParams
avatar.controller = getAvatarDraweeController(pollDetails)
@ -134,7 +134,7 @@ class PollResultVotersOverviewViewHolder(
const val AVATAR_SIZE = 60
const val AVATAR_RADIUS = 5f
const val MAX_AVATARS = 10
const val AVATAR_OFFSET = AVATAR_SIZE - 10
const val AVATAR_OFFSET = AVATAR_SIZE - 20
const val DOTS_OFFSET = 70
const val DOTS_TEXT = ""
}

View file

@ -75,4 +75,5 @@
<color name="grey_200">#818181</color>
<color name="dialog_background">#353535</color>
<color name="vote_dialog_background">#424242</color>
</resources>

View file

@ -109,5 +109,6 @@
<!-- this is just a helper for status icon background because getting the background color of a dialog is not
possible?! don't use this to set the background of dialogs -->
<color name="dialog_background">#FFFFFF</color>
<color name="vote_dialog_background">#FFFFFF</color>
</resources>