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

Method setMaskDrawableRad

app/src/main/java/cc/ioctl/tmoe/ui/Theme.java:585–597  ·  view source on GitHub ↗
(Drawable rippleDrawable, int top, int bottom)

Source from the content-addressed store, hash-verified

583 }
584
585 public static void setMaskDrawableRad(Drawable rippleDrawable, int top, int bottom) {
586 if (rippleDrawable instanceof RippleDrawable) {
587 RippleDrawable drawable = (RippleDrawable) rippleDrawable;
588 int count = drawable.getNumberOfLayers();
589 for (int a = 0; a < count; a++) {
590 Drawable layer = drawable.getDrawable(a);
591 if (layer instanceof RippleRadMaskDrawable) {
592 drawable.setDrawableByLayerId(android.R.id.mask, new RippleRadMaskDrawable(top, bottom));
593 break;
594 }
595 }
596 }
597 }
598
599 public static Drawable createRadSelectorDrawable(int color, int topRad, int bottomRad) {
600 sMaskPaint.setColor(0xffffffff);

Callers 1

positionSelectorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected