(final @NonNull View v)
| 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) { |
no outgoing calls
no test coverage detected