protected override void OnLayout(bool changed, int left, int top, int right, int bottom) { base.OnLayout(changed, left, top, right, bottom); var msw = MeasureSpec.MakeMeasureSpec(right - left, MeasureSpecMode.Exactly); var msh = MeasureSpec.MakeMeasureSpec(bottom - top, MeasureSpecMode.Exactly); _cameraTexture.Measure(msw, msh); _cameraTexture.Layout(0, 0, right - left, bottom - top); }
protected override void OnLayout(bool changed, int l, int t, int r, int b) { base.OnLayout(changed, l, t, r, b); var msw = MeasureSpec.MakeMeasureSpec(r - l, MeasureSpecMode.Exactly); var msh = MeasureSpec.MakeMeasureSpec(b - t, MeasureSpecMode.Exactly); view.Measure(msw, msh); view.Layout(0, 0, r - l, b - t); transparentView.Measure(msw, msh); transparentView.Layout(0, 0, r - l, b - t); textureView.Measure(msw, msh); textureView.Layout(0, 0, r - l, b - t); }