| 93 | doInvalidateLayout(view) |
| 94 | } |
| 95 | |
| 96 | private fun measureAndLayout(view: View, x: Int, y: Int, width: Int, height: Int, animating: Boolean) { |
| 97 | ViewUtils.setCalculatedFrame(view, x, y, width, height) |
| 98 | |
| 99 | if (animating || view.parent == null) { |
| 100 | val widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY) |
| 101 | val heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY) |
| 102 | |
| 103 | view.measure(widthMeasureSpec, heightMeasureSpec) |
| 104 | view.layout(x, y, width + x, height + y) |
| 105 | |
| 106 | ViewUtils.notifyDidApplyLayout(view) |
| 107 | } else { |
| 108 | view.requestLayout() |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | fun onFrameChanged(x: Int, y: Int, width: Int, height: Int, isRightToLeft: Boolean, animator: Any?) { |
nothing calls this directly
no test coverage detected