Setting the size of BadgeDrawable

Viewed 37

I am displaying BadgeDrawable without any text, just the dot. Is it possible to set the size to a smaller size on the BadgeDrawable somehow?

1 Answers

Cannot edit directly, it's set in constructor. May try reflection, see if can help:

Field field = BadgeDrawable.class.getDeclaredField("badgeRadius");
field.setAccessible(true);
field.set(BadgeDrawable.create(this), SMALLER_SIZE);
Related