Cheesebaron.ParallaxScrollView.ParallaxScrollView.OrganiseViews C# (CSharp) 메소드

OrganiseViews() 개인적인 메소드

private OrganiseViews ( ) : void
리턴 void
        private void OrganiseViews()
        {
            if (ChildCount <= 0) return;

            if (ChildCount == 1)
            {
                var foreground = GetChildAt(0);
                OrganiseBackgroundView(null);
                OrganiseForegroundView(foreground);
            }
            else if (ChildCount == 2)
            {
                var background = GetChildAt(0);
                var foreground = GetChildAt(1);

                OrganiseBackgroundView(background);
                OrganiseForegroundView(foreground);
            }
            else
                throw new InvalidOperationException("ParallaxScrollView can host only two direct children");
        }