(final @NonNull View v, final int y)
| 30 | } |
| 31 | |
| 32 | public static void setY(final @NonNull View v, final int y) { |
| 33 | if (Build.VERSION.SDK_INT >= 11) { |
| 34 | ViewCompat.setY(v, y); |
| 35 | } else { |
| 36 | ViewGroup.MarginLayoutParams params = |
| 37 | (ViewGroup.MarginLayoutParams) v.getLayoutParams(); |
| 38 | params.topMargin = y; |
| 39 | v.setLayoutParams(params); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | public static float getY(final @NonNull View v) { |
| 44 | if (Build.VERSION.SDK_INT >= 11) { |
nothing calls this directly
no outgoing calls
no test coverage detected