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

Method createRoundRectDrawable

app/src/main/java/cc/ioctl/tmoe/ui/Theme.java:295–299  ·  view source on GitHub ↗
(int rad, int defaultColor)

Source from the content-addressed store, hash-verified

293 }
294
295 public static Drawable createRoundRectDrawable(int rad, int defaultColor) {
296 ShapeDrawable defaultDrawable = new ShapeDrawable(new RoundRectShape(new float[]{rad, rad, rad, rad, rad, rad, rad, rad}, null, null));
297 defaultDrawable.getPaint().setColor(defaultColor);
298 return defaultDrawable;
299 }
300
301 public static Drawable createSimpleSelectorRoundRectDrawable(int rad, int defaultColor, int pressedColor) {
302 return createSimpleSelectorRoundRectDrawable(rad, defaultColor, pressedColor, pressedColor);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected