private BaseLayout createView()
        {
            CustomPlacementLayout backgroundFrame = new CustomPlacementLayout();

            backgroundFrame.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));
            ColoredLayout background = new ColoredLayout();

            background.color = new Color(45, 45, 48);
            background.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));
            backgroundFrame.addChild(background);

            ColoredLayout horizontalDivider = new ColoredLayout();

            horizontalDivider.setSizeParams(new SizeParams(MATCH_PARENT, 2));
            horizontalDivider.color = new Color(63, 63, 70);

            ColoredLayout blankSpace = new ColoredLayout();

            blankSpace.setSizeParams(new SizeParams(MATCH_PARENT, 6));
            blankSpace.color = new Color(0, 0, 0, 0);

            LinearLayout vertical = new LinearLayout();

            vertical.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));
            vertical.addChild(blankSpace);
            vertical.addChild(createHeader());
            vertical.addChild(blankSpace);
            vertical.addChild(horizontalDivider);
            vertical.addChild(createBody());

            backgroundFrame.addChild(vertical);

            return(backgroundFrame);
        }
        private BaseLayout createJsonHeaderLayout(string text)
        {
            Color headerBlue = new Color(0, 122, 204);

            LinearLayout verticalLayout = new LinearLayout();

            verticalLayout.setSizeParams(new SizeParams(MATCH_PARENT, WRAP_CONTENTS));

            CustomPlacementLayout space = new CustomPlacementLayout();

            space.setSizeParams(new SizeParams(100, 20));
            space.color = headerBlue;

            TextBoxLayout headerText = new TextBoxLayout();

            headerText.text = text;
            headerText.setSizeParams(new SizeParams(WRAP_CONTENTS, WRAP_CONTENTS));
            headerText.setPositionParams(new PositionParams(5, CENTER));
            headerText.textColor = uiWhite;

            space.addChild(headerText);

            ColoredLayout horizontalDivider = new ColoredLayout();

            horizontalDivider.setSizeParams(new SizeParams(MATCH_PARENT, 3));
            horizontalDivider.color = headerBlue;

            verticalLayout.addChild(space);
            verticalLayout.addChild(horizontalDivider);

            return(verticalLayout);
        }
        private BaseLayout createBody()
        {
            LinearLayout horizontal = new LinearLayout();

            horizontal.setDirection(LinearLayout.Direction.HORIZONTAL);
            horizontal.setSizeParams(new SizeParams(MATCH_PARENT, FILL));

            CustomPlacementLayout keysHeader = new CustomPlacementLayout();

            keysHeader.setSizeParams(new SizeParams(MATCH_PARENT, 30));

            TextBoxLayout headerText = new TextBoxLayout();

            headerText.text = "Comparison Keys";
            headerText.setSizeParams(new SizeParams(WRAP_CONTENTS, WRAP_CONTENTS));
            headerText.setPositionParams(new PositionParams(5, 4));
            headerText.textColor = uiWhite;

            keysHeader.addChild(headerText);

            ColoredLayout greyBody = new ColoredLayout();

            greyBody.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));
            greyBody.color = new Color(90, 90, 90);

            ColoredLayout dargerGreyBody = new ColoredLayout();

            dargerGreyBody.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));
            dargerGreyBody.color = new Color(70, 70, 70);

            SizeParams thirdWidthSizeParams = new SizeParams();

            thirdWidthSizeParams.Width  = 250;
            thirdWidthSizeParams.Height = MATCH_PARENT;

            LinearLayout keysColumn = new LinearLayout();

            keysColumn.setSizeParams(thirdWidthSizeParams);
            keysColumn.addItem(keysHeader);
            keysColumn.addItem(createKeysLayout());
            horizontal.addItem(keysColumn);

            BaseLayout switchableSection = createContentLayout();

            switchableSection.setSizeParams(new SizeParams(MATCH_PARENT, MATCH_PARENT));

            horizontal.addItem(switchableSection);

            return(horizontal);
        }