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

Method getDividerPaint

app/src/main/java/cc/ioctl/tmoe/ui/Theme.java:286–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 private static Paint sDividerPaint = null;
285
286 public static Paint getDividerPaint() {
287 if (sDividerPaint == null) {
288 sDividerPaint = new Paint();
289 }
290 sDividerPaint.setStrokeWidth(1);
291 sDividerPaint.setColor(getColor(key_divider));
292 return sDividerPaint;
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));

Callers 3

onDrawMethod · 0.95
onDrawMethod · 0.95
dispatchDrawMethod · 0.95

Calls 1

getColorMethod · 0.95

Tested by

no test coverage detected