Exemple #1
0
        private void ControlPageContents(Android.Content.Context con)
        {
            List <string> sizeList = new List <string>();

            sizeList.Add("100%");
            sizeList.Add("125%");
            sizeList.Add("150% (Recommended)");
            sizeList.Add("175%");

            List <string> resolutionList = new List <string>();

            resolutionList.Add("1920 x 1080 (Recommended)");
            resolutionList.Add("1680 x 1050");
            resolutionList.Add("1600 x 900");
            resolutionList.Add("1440 x 900");
            resolutionList.Add("1400 x 1050");
            resolutionList.Add("1366 x 768");
            resolutionList.Add("1360 x 768");
            resolutionList.Add("1280 x 1024");
            resolutionList.Add("1280 x 960");
            resolutionList.Add("1280 x 720");
            resolutionList.Add("854 x 480");
            resolutionList.Add("800 x 480");
            resolutionList.Add("480 X 640");
            resolutionList.Add("480 x 320");
            resolutionList.Add("432 x 240");
            resolutionList.Add("360 X 640");
            resolutionList.Add("320 x 240");

            List <string> orientationList = new List <string>();

            orientationList.Add("Landscape");
            orientationList.Add("Portrait");
            orientationList.Add("Landscape (flipped)");
            orientationList.Add("Portrait (flipped)");

            sizeComboBox = new SfComboBox(con);
            sizeComboBox.LayoutParameters = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            sizeComboBox.Watermark        = "Search Here";
            sizeComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            sizeComboBox.Text       = "150% (Recommended)";
            sizeComboBox.DataSource = sizeList;


            resolutionComboBox = new SfComboBox(con);
            resolutionComboBox.MaximumDropDownHeight = 200;
            resolutionComboBox.LayoutParameters      = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            resolutionComboBox.Watermark             = "Search Here";
            resolutionComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            resolutionComboBox.Text       = "1920 x 1080 (Recommended)";
            resolutionComboBox.DataSource = resolutionList;


            orientationComboBox = new SfComboBox(con);
            orientationComboBox.LayoutParameters = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 45);
            orientationComboBox.Watermark        = "Search Here";
            orientationComboBox.GetAutoEditText().SetTextSize(ComplexUnitType.Sp, 16);
            orientationComboBox.Text       = "Landscape";
            orientationComboBox.DataSource = orientationList;
        }