mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
fix avatar voter border
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
bb822aa1a4
commit
0a3e0230c9
3 changed files with 5 additions and 3 deletions
|
@ -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 = "…"
|
||||
}
|
||||
|
|
|
@ -75,4 +75,5 @@
|
|||
<color name="grey_200">#818181</color>
|
||||
|
||||
<color name="dialog_background">#353535</color>
|
||||
<color name="vote_dialog_background">#424242</color>
|
||||
</resources>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue