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

Method dpf2

app/src/main/java/cc/ioctl/tmoe/ui/LayoutHelper.java:57–59  ·  view source on GitHub ↗
(float value)

Source from the content-addressed store, hash-verified

55 }
56
57 public static float dpf2(float value) {
58 return HostInfo.getApplication().getResources().getDisplayMetrics().density * value;
59 }
60
61 public static FrameLayout.LayoutParams createFrame(int width, float height, int gravity, float leftMargin, float topMargin, float rightMargin, float bottomMargin) {
62 FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(getSize(width), getSize(height), gravity);

Callers 1

onDrawMethod · 0.95

Calls 2

getApplicationMethod · 0.95
getResourcesMethod · 0.80

Tested by

no test coverage detected