MCPcopy Create free account
hub / github.com/InsightIM/Tok-Android / getY

Method getY

app/src/main/java/com/client/tok/utils/ViewUtil.java:43–49  ·  view source on GitHub ↗
(final @NonNull View v)

Source from the content-addressed store, hash-verified

41 }
42
43 public static float getY(final @NonNull View v) {
44 if (Build.VERSION.SDK_INT >= 11) {
45 return ViewCompat.getY(v);
46 } else {
47 return ((ViewGroup.MarginLayoutParams) v.getLayoutParams()).topMargin;
48 }
49 }
50
51 public static float getX(final @NonNull View v) {
52 if (Build.VERSION.SDK_INT >= 11) {

Callers

nothing calls this directly

Calls 1

getYMethod · 0.65

Tested by

no test coverage detected