protected override void OnFinishInflate() { base.OnFinishInflate(); if (ChildCount > 2) throw new InvalidOperationException("ParallaxScrollView can only host two direct children"); OrganiseViews(); }