MCPcopy Index your code
hub / github.com/razerdp/BasePopup / getColor

Method getColor

app/src/main/java/razerdp/demo/utils/UIHelper.java:58–64  ·  view source on GitHub ↗
(@ColorRes int colorResId)

Source from the content-addressed store, hash-verified

56 private static int statusBarHeight;
57
58 public static int getColor(@ColorRes int colorResId) {
59 try {
60 return ContextCompat.getColor(AppContext.getAppContext(), colorResId);
61 } catch (Exception e) {
62 return Color.TRANSPARENT;
63 }
64 }
65
66 public static void clearImageViewMemory(ImageView imageView) {
67 if (imageView == null) {

Callers 15

genVersionHeaderMethod · 0.95
getDefaultMethod · 0.95
setTextColorResMethod · 0.95
ClickSpanMethod · 0.95
OptionsClass · 0.95
onCheckedChangedMethod · 0.95
SimpleSelectorPopupMethod · 0.95
onBindDataMethod · 0.95
hasBackgroundMethod · 0.80

Calls 1

getAppContextMethod · 0.95

Tested by

no test coverage detected