make avatar rounding independent of image size
This commit is contained in:
parent
1af0b6fd48
commit
2851e4d38b
7 changed files with 27 additions and 17 deletions
|
|
@ -129,7 +129,7 @@ public class MentionAutoCompleteAdapter extends ArrayAdapter<Account>
|
|||
Picasso.with(context)
|
||||
.load(account.getAvatar())
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(avatar);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
|||
Picasso.with(context)
|
||||
.load(avatarUrl)
|
||||
.fit()
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.into(avatar);
|
||||
}
|
||||
|
|
@ -445,7 +445,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
|||
Picasso.with(context)
|
||||
.load(statusAvatarUrl)
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(statusAvatar);
|
||||
}
|
||||
|
||||
|
|
@ -456,7 +456,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
|||
.load(notificationAvatarUrl)
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.fit()
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(notificationAvatar);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||
Picasso.with(avatar.getContext())
|
||||
.load(url)
|
||||
.placeholder(R.drawable.avatar_default)
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(avatar);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class StatusViewHolder extends StatusBaseViewHolder {
|
|||
Picasso.with(context)
|
||||
.load(rebloggedUrl)
|
||||
.fit()
|
||||
.transform(new RoundedTransformation(7, 0))
|
||||
.transform(new RoundedTransformation(25))
|
||||
.into(avatarReblog);
|
||||
} else {
|
||||
avatarReblog.setVisibility(View.GONE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue