MCPcopy Create free account
hub / github.com/bttv-android/bttv / getColorValue

Method getColorValue

mod/app/src/main/java/bttv/ResUtil.java:59–62  ·  view source on GitHub ↗
(@NonNull String colorName)

Source from the content-addressed store, hash-verified

57 }
58
59 public static int getColorValue(@NonNull String colorName) {
60 int id = getResourceId(colorName, "color");
61 return Data.ctx.getResources().getColor(id);
62 }
63
64 public static int getStringId(@NonNull String name) {
65 return getResourceId(name, "string");

Callers 2

setBackgroundColorMethod · 0.95
resetMethod · 0.95

Calls 1

getResourceIdMethod · 0.95

Tested by

no test coverage detected