fix card view outline being off a few pixels (#1375)
This commit is contained in:
parent
1dda2c55fc
commit
75734d0e91
1 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,8 @@ class StatusDetailedViewHolder extends StatusBaseViewHolder {
|
|||
cardDescription = view.findViewById(R.id.card_description);
|
||||
cardUrl = view.findViewById(R.id.card_link);
|
||||
infoDivider = view.findViewById(R.id.status_info_divider);
|
||||
|
||||
cardView.setClipToOutline(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -194,7 +196,6 @@ class StatusDetailedViewHolder extends StatusBaseViewHolder {
|
|||
int radius = cardImage.getContext().getResources()
|
||||
.getDimensionPixelSize(R.dimen.card_radius);
|
||||
|
||||
cardView.setClipToOutline(true);
|
||||
Glide.with(cardImage)
|
||||
.load(card.getImage())
|
||||
.transform(new CenterCrop(), new RoundedCornersTransformation(radius, 0, cornertype))
|
||||
|
|
Loading…
Reference in a new issue