|
|
|
|
@ -91,12 +91,12 @@ class PlayerImageView : FrameLayout { |
|
|
|
|
} else { |
|
|
|
|
NULL_TEXT |
|
|
|
|
} |
|
|
|
|
playerImageView.playerInitial.text = playerInitial |
|
|
|
|
playerImageView.playerInitial.setTextSize(TypedValue.COMPLEX_UNIT_SP, size.getFontSize()) |
|
|
|
|
|
|
|
|
|
// Picture |
|
|
|
|
if (player.hasPicture()) { |
|
|
|
|
|
|
|
|
|
playerImageView.playerInitial.text = "" |
|
|
|
|
|
|
|
|
|
Glide.with(this) |
|
|
|
|
.load(player.picture) |
|
|
|
|
.apply(RequestOptions().circleCrop()) |
|
|
|
|
@ -106,6 +106,8 @@ class PlayerImageView : FrameLayout { |
|
|
|
|
} else { |
|
|
|
|
playerImageView.playerStroke.background = ResourcesCompat.getDrawable(resources, R.drawable.circle_stroke_kaki, null) |
|
|
|
|
playerImageView.playerImage.setImageDrawable(null) |
|
|
|
|
playerImageView.playerInitial.text = playerInitial |
|
|
|
|
playerImageView.playerInitial.setTextSize(TypedValue.COMPLEX_UNIT_SP, size.getFontSize()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Player color |
|
|
|
|
|