MCPcopy Create free account
hub / github.com/cinit/TMoe / createRadSelectorDrawable

Method createRadSelectorDrawable

app/src/main/java/cc/ioctl/tmoe/ui/Theme.java:599–604  ·  view source on GitHub ↗
(int color, int topRad, int bottomRad)

Source from the content-addressed store, hash-verified

597 }
598
599 public static Drawable createRadSelectorDrawable(int color, int topRad, int bottomRad) {
600 sMaskPaint.setColor(0xffffffff);
601 Drawable maskDrawable = new RippleRadMaskDrawable(topRad, bottomRad);
602 ColorStateList colorStateList = new ColorStateList(new int[][]{StateSet.WILD_CARD}, new int[]{color});
603 return new RippleDrawable(colorStateList, null, maskDrawable);
604 }
605
606 public static void invalidate() {
607 sDividerPaint = null;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected