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

Method createFrame

app/src/main/java/cc/ioctl/tmoe/ui/LayoutHelper.java:61–65  ·  view source on GitHub ↗
(int width, float height, int gravity, float leftMargin, float topMargin, float rightMargin, float bottomMargin)

Source from the content-addressed store, hash-verified

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);
63 layoutParams.setMargins(dp(leftMargin), dp(topMargin), dp(rightMargin), dp(bottomMargin));
64 return layoutParams;
65 }
66
67 public static FrameLayout.LayoutParams createFrame(int width, int height, int gravity) {
68 return new FrameLayout.LayoutParams(getSize(width), getSize(height), gravity);

Callers 5

HeaderCellMethod · 0.95
TextCheckCellMethod · 0.95
TextInfo2CellMethod · 0.95
TextSettingsCellMethod · 0.95

Calls 2

getSizeMethod · 0.95
dpMethod · 0.95

Tested by

no test coverage detected