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

Method getX

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

Source from the content-addressed store, hash-verified

49 }
50
51 public static float getX(final @NonNull View v) {
52 if (Build.VERSION.SDK_INT >= 11) {
53 return ViewCompat.getX(v);
54 } else {
55 return ((LinearLayout.LayoutParams) v.getLayoutParams()).leftMargin;
56 }
57 }
58
59 @SuppressWarnings("unchecked")
60 public static <T extends View> T findById(@NonNull View parent, @IdRes int resId) {

Callers 6

shotCommonViewBpMethod · 0.80
onDoubleTapMethod · 0.80
onTouchMethod · 0.80
onDoubleTapMethod · 0.80
onTouchMethod · 0.80
onTouchEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected