private void PopUpDelayLayout()
        {
            /***************
            **Popup Delay**
            ***************/
            TextView popUpDelayLabel = new TextView(context);

            popUpDelayLabel.Text     = "PopUp Delay";
            popUpDelayLabel.TextSize = 20;

            //PopUpDelayText
            popUpDelayText           = new EditText(context);
            popUpDelayText.Text      = "100";
            popUpDelayText.TextSize  = 16;
            popUpDelayText.InputType = Android.Text.InputTypes.ClassPhone;
            popUpDelayText.SetWidth(50);

            //popUpDelayText TextChanged Listener
            popUpDelayText.TextChanged += (object sender, Android.Text.TextChangedEventArgs e) =>
            {
                try
                {
                    if (popUpDelayText.Text.Length > 0)
                    {
                        popupdelay = Convert.ToInt32(e.Text.ToString());
                    }
                    else
                    {
                        popupdelay = 100;
                    }
                }
                catch (Exception e1) {
                }
            };

            LinearLayout.LayoutParams popUpDelayTextLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            popUpDelayTextLayoutParams.SetMargins(-10, 10, 0, 0);
            LinearLayout.LayoutParams popUpDelayLabelLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            popUpDelayLabelLayoutParams.SetMargins(0, 10, 0, 0);

            TextView spacingText = new TextView(context);

            propertylayout.AddView(spacingText);
            //PopUpDelayStack
            popUpDelayStack = new LinearLayout(context);
            popUpDelayStack.AddView(popUpDelayLabel, popUpDelayLabelLayoutParams);
            popUpDelayStack.AddView(popUpDelayText, popUpDelayTextLayoutParams);
            popUpDelayStack.Orientation = Orientation.Horizontal;
            propertylayout.AddView(popUpDelayStack);

            //PopUpDelaySeparate
            SeparatorView popUpDelaySeparate = new SeparatorView(context, width * 2);

            popUpDelaySeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams popUpDelayLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            popUpDelayLayoutParams.SetMargins(0, 20, 0, 0);
            //   propertylayout.AddView(popUpDelaySeparate, popUpDelayLayoutParams);
        }
Exemple #2
0
        public override View GetPropertyWindowLayout(Android.Content.Context context)
        {
            /**
             * Property Window
             * */
            int          width          = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            LinearLayout propertylayout = new LinearLayout(context); //= new LinearLayout(context);

            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
                width * 2, 5);

            layoutParams1.SetMargins(0, 20, 0, 0);

            spacingValue      = new TextView(context);
            spacingValue.Text = "Spacing : 0.0";
            spacingValue.SetPadding(5, 20, 0, 20);

            columnWidthValue      = new TextView(context);
            columnWidthValue.Text = "Width : 0.8";
            columnWidthValue.SetPadding(5, 20, 0, 20);

            cornerRadiusValue      = new TextView(context);
            cornerRadiusValue.Text = "Corner Radious : 0";
            cornerRadiusValue.SetPadding(5, 20, 0, 20);

            SeekBar spacing = new SeekBar(context);

            spacing.Max = 10;

            SeekBar columnWidth = new SeekBar(context);

            columnWidth.Max      = 10;
            columnWidth.Progress = 8;

            SeekBar cornerRadius = new SeekBar(context);

            cornerRadius.Max      = 15;
            cornerRadius.Progress = 0;

            spacing.ProgressChanged += Spacing_ProgressChanged;

            columnWidth.ProgressChanged += ColumnWidth_ProgressChanged;

            cornerRadius.ProgressChanged += CornerRadius_ProgressChanged;

            propertylayout.AddView(columnWidthValue);
            propertylayout.AddView(columnWidth);
            propertylayout.AddView(spacingValue);
            propertylayout.AddView(spacing);
            propertylayout.AddView(cornerRadiusValue);
            propertylayout.AddView(cornerRadius);
            SeparatorView separate = new SeparatorView(context, width * 2);

            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            propertylayout.AddView(separate, layoutParams1);

            return(propertylayout);
        }
        private void MinimumPrefixCharacterLayout()
        {
            /************************
            **Min Prefix Character**
            ************************/
            TextView minPrefixCharaterLabel = new TextView(context);

            minPrefixCharaterLabel.Text     = "Min Prefix Character";
            minPrefixCharaterLabel.TextSize = 20;

            //MinPrefixCharacterText
            minPrefixCharacterText          = new EditText(context);
            minPrefixCharacterText.Text     = "1";
            minPrefixCharacterText.TextSize = 16;
            minPrefixCharacterText.SetWidth(50);
            minPrefixCharacterText.InputType    = Android.Text.InputTypes.ClassPhone;
            minPrefixCharacterText.TextChanged += (object sender, Android.Text.TextChangedEventArgs e) =>
            {
                try
                {
                    if (minPrefixCharacterText.Text.Length > 0)
                    {
                        minimum = Convert.ToInt32(e.Text.ToString());
                    }
                    else
                    {
                        minimum = 1;
                    }
                }
                catch
                {
                }
            };

            //MinPrefixCharaterTextLayoutParams
            LinearLayout.LayoutParams minPrefixCharaterTextLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            minPrefixCharaterTextLayoutParams.SetMargins(-10, 10, 0, 0);
            LinearLayout.LayoutParams minPrefixCharaterLabelLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            minPrefixCharaterLabelLayoutParams.SetMargins(0, 10, 0, 0);

            TextView spacingText = new TextView(context);

            propertylayout.AddView(spacingText);
            //MinPrefixCharaterStack
            minPrefixCharaterStack = new LinearLayout(context);
            minPrefixCharaterStack.AddView(minPrefixCharaterLabel, minPrefixCharaterLabelLayoutParams);
            minPrefixCharaterStack.AddView(minPrefixCharacterText, minPrefixCharaterTextLayoutParams);
            minPrefixCharaterStack.Orientation = Orientation.Horizontal;
            propertylayout.AddView(minPrefixCharaterStack);

            //MinPrefixCharaterSeparate
            SeparatorView minPrefixCharaterSeparate = new SeparatorView(context, width * 2);

            minPrefixCharaterSeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams minPrefixCharaterLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            minPrefixCharaterLayoutParams.SetMargins(0, 20, 0, 0);
            // propertylayout.AddView(minPrefixCharaterSeparate, minPrefixCharaterLayoutParams);
        }
        public override View GetPropertyWindowLayout(Context context)
        {
            context1 = context;
            width    = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            showBusyLayout();

            /******************
            **propertylayout**
            ******************/
            //Separator
            LinearLayout.LayoutParams separatorLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            separatorLayoutParams.SetMargins(0, 20, 0, 0);
            SeparatorView separate = new SeparatorView(context1, width * 2);

            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);

            LinearLayout propertylayout = new LinearLayout(context);

            propertylayout.Orientation = Orientation.Vertical;
            propertylayout.AddView(showBusyText);
            showBusyText.SetPadding(0, 10, 0, 30);
            propertylayout.AddView(showBusySpinner);

            return(propertylayout);
        }
        private void AutoCompleteModeLayout()
        {
            /*******************
             **AutoCompleteMode**
             ********************/
            TextView autoCompleteModeLabel = new TextView(context);

            autoCompleteModeLabel.Text     = "AutoComplete Mode";
            autoCompleteModeLabel.TextSize = 20;
            autoCompleteModeLabel.Gravity  = GravityFlags.Left;

            //SpaceTExt
            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);
            autoCompleteModeSpinner = new Spinner(context, SpinnerMode.Dialog);
            propertylayout.AddView(autoCompleteModeLabel);
            propertylayout.AddView(autoCompleteModeSpinner);

            //AutoCompleteModeList
            List <String> autoCompleteModeList = new List <String>();

            autoCompleteModeList.Add("Suggest");
            autoCompleteModeList.Add("SuggestAppend");
            autoCompleteModeList.Add("Append");
            autoCompleteModeDataAdapter = new ArrayAdapter <String>(context, Android.Resource.Layout.SimpleSpinnerItem, autoCompleteModeList);
            autoCompleteModeDataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            autoCompleteModeSpinner.Adapter = autoCompleteModeDataAdapter;

            //autoCompleteModeSpinner ItemSelected Listener
            autoCompleteModeSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = autoCompleteModeDataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Suggest"))
                {
                    autoCompleteMode = AutoCompleteMode.Suggest;
                }
                else if (selectedItem.Equals("SuggestAppend"))
                {
                    autoCompleteMode = AutoCompleteMode.SuggestAppend;
                }
                else if (selectedItem.Equals("Append"))
                {
                    autoCompleteMode = AutoCompleteMode.Append;
                }
            };

            //Separator
            SeparatorView separate1 = new SeparatorView(context, width * 2);

            separate1.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams autoCompleteModeLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            autoCompleteModeLayoutParams.SetMargins(0, 20, 0, 0);
            propertylayout.SetPadding(5, 0, 5, 0);

            //autoCompleteModeSeparator
            SeparatorView autoCompleteModeSeparate = new SeparatorView(context, width * 2);

            autoCompleteModeSeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            //propertylayout.AddView(autoCompleteModeSeparate, autoCompleteModeLayoutParams);
        }
Exemple #6
0
        public override View GetPropertyWindowLayout(Android.Content.Context context)
        {
            int          width          = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            LinearLayout propertylayout = new LinearLayout(context);

            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
                width * 2, 05);
            layoutParams1.SetMargins(0, 20, 0, 0);

            SeparatorView separate = new SeparatorView(context, width * 2);

            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            propertylayout.AddView(separate, layoutParams1);

            Spinner selectLabelMode = new Spinner(context, SpinnerMode.Dialog);

            scatterSeriesType = new List <String>()
            {
                "Ellipse", "Cross", "Diamond", "Hexagon", "Triangle", "InvertedTriangle", "Plus", "Pentagon", "Rectangle"
            };

            ArrayAdapter <String> dataAdapter = new ArrayAdapter <String>
                                                    (context, Android.Resource.Layout.SimpleSpinnerItem, scatterSeriesType);

            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleDropDownItem1Line);
            selectLabelMode.Adapter = dataAdapter;

            selectLabelMode.ItemSelected += SelectLabelMode_ItemSelected;

            propertylayout.AddView(selectLabelMode);
            return(propertylayout);
        }
Exemple #7
0
        private void MinimumDateLayout()
        {
            /****************
            **Minimum Date**
            ****************/
            spaceAdder1 = new TextView(context);
            minPick     = Calendar.Instance;
            minPick.Set(2012, 0, 1);
            maxPick = Calendar.Instance;
            maxPick.Set(2018, 11, 1);

            //Minimum Date Text
            minDate          = new TextView(context);
            minDate.Text     = "Min Date";
            minDate.TextSize = 20;
            minDate.Gravity  = GravityFlags.Left;

            //minDateButton
            minDateButton = new Button(context);
            minDateButton.SetBackgroundColor(Color.ParseColor("#8CD4CF"));
            minDateButton.Text     = "1/1/2012";
            minDateButton.TextSize = 16;
            minDatePicker          = new DatePickerDialog(context, MinDateSetting, 2012, 1, 1);
            minDateButton.Click   += (object sender, EventArgs e) =>
            {
                minDatePicker.Show();
            };

            //Separator 1
            minMaxSeparator = new SeparatorView(context, width * 2);
            minMaxSeparator.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            minMaxSeparatorLayoutParam       = new LinearLayout.LayoutParams(width * 2, 5);
            minMaxSeparatorLayoutParam.SetMargins(0, 20, 0, 0);
        }
Exemple #8
0
        private void MaximumDateLayout()
        {
            /****************
            **Maximum Date**
            ****************/
            spaceAdder2      = new TextView(context);
            maxDate          = new TextView(context);
            maxDate.Text     = "Max Date";
            maxDate.TextSize = 20;
            maxDate.Gravity  = GravityFlags.Left;

            //maxDateButton
            maxDateButton          = new Button(context);
            maxDateButton.Text     = "1/12/2018";
            maxDateButton.TextSize = 16;
            maxDateButton.SetBackgroundColor(Color.ParseColor("#8CD4CF"));
            maxDatePicker        = new DatePickerDialog(context, MaxDateSetting, 2018, 12, 1);
            maxDateButton.Click += (object sender, EventArgs e) =>
            {
                maxDatePicker.Show();
            };

            //Separator 1
            underMaxSeparator = new SeparatorView(context, width * 2);
            underMaxSeparator.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            underMaxSeparatorLayoutParam       = new LinearLayout.LayoutParams(width * 2, 5);
            underMaxSeparatorLayoutParam.SetMargins(0, 20, 0, 0);
        }
        private void SpinButtonLayout()
        {
            /***********************
            **SpinButtonAlignment**
            ***********************/
            LinearLayout.LayoutParams spinButtonLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            spinButtonLayoutParams.SetMargins(0, 20, 0, 0);

            //SpinButtonText
            TextView spinButtonText = new TextView(context);

            spinButtonText.TextSize = 20;
            spinButtonText.Text     = "SpinButtonAlignment";

            //SpinButtonList
            List <String> spinButtonList = new List <String>();

            spinButtonList.Add("Right");
            spinButtonList.Add("Left");
            spinButtonList.Add("Both");
            spinButtonDataAdapter = new ArrayAdapter <String>
                                        (context, Android.Resource.Layout.SimpleSpinnerItem, spinButtonList);
            spinButtonDataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);

            //SpinButtonSpinner
            spinButtonSpinner         = new Spinner(context, SpinnerMode.Dialog);
            spinButtonSpinner.Adapter = spinButtonDataAdapter;

            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);
            //SpinButtonSpinner ItemSelected Listener
            spinButtonSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = spinButtonDataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Right"))
                {
                    spinButtonAlignment = SpinButtonAlignment.Right;
                    gravity             = GravityFlags.CenterVertical;
                }
                if (selectedItem.Equals("Left"))
                {
                    spinButtonAlignment = SpinButtonAlignment.Left;
                    gravity             = GravityFlags.End | GravityFlags.CenterVertical;
                }
                if (selectedItem.Equals("Both"))
                {
                    spinButtonAlignment = SpinButtonAlignment.Both;
                    gravity             = GravityFlags.Center;
                }
            };
            propertylayout.AddView(spinButtonText);
            propertylayout.AddView(spinButtonSpinner);

            //SpinButtonSeparate
            SeparatorView spinButtonSeparate = new SeparatorView(context, width * 2);

            spinButtonSeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            // propertylayout.AddView(spinButtonSeparate, spinButtonLayoutParams);
        }
Exemple #10
0
        private void PrecisionLayout()
        {
            /*************
            **Precision**
            *************/
            TextView precisionLabel = new TextView(context);

            precisionLabel.TextSize = 20;
            precisionLabel.Text     = "Precision";

            //Precision Spinner
            precisionSpinner = new Spinner(context, SpinnerMode.Dialog);
            precisionSpinner.SetGravity(GravityFlags.Left);

            //Precision List
            List <String> precisionList = new List <String>();

            precisionList.Add("Standard");
            precisionList.Add("Half");
            precisionList.Add("Exact");

            //precision Adapter
            precisionAdapter = new ArrayAdapter <String>(context, Android.Resource.Layout.SimpleSpinnerItem, precisionList);
            precisionAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            precisionSpinner.Adapter = precisionAdapter;

            //Precision Spinner ItemSelected Listener
            precisionSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = precisionAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Standard"))
                {
                    precisionPosition = Precision.Standard;
                }
                if (selectedItem.Equals("Half"))
                {
                    precisionPosition = Precision.Half;
                }
                if (selectedItem.Equals("Exact"))
                {
                    precisionPosition = Precision.Exact;
                }
            };

            propertylayout.AddView(precisionLabel);

            //Separator
            SeparatorView separatorLine2 = new SeparatorView(context, width * 2);

            separatorLine2.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            // propertylayout.AddView(separatorLine2, layoutParams);

            //AdjLabel
            TextView adjLabel2 = new TextView(context);

            adjLabel2.SetHeight(14);
            propertylayout.AddView(adjLabel2);
            precisionSpinner.SetPadding(0, 0, 0, 20);
            propertylayout.AddView(precisionSpinner);
        }
        private void MaximumDropDownLayout()
        {
            /***********************
            **max DropDown height**
            ***********************/
            TextView maxDropDownHeightLabel = new TextView(context);

            maxDropDownHeightLabel.Text     = "Max DropDown Height";
            maxDropDownHeightLabel.TextSize = 20;

            //MaxDropDownHeightText
            maxDropDownHeightText          = new EditText(context);
            maxDropDownHeightText.Text     = "200";
            maxDropDownHeightText.TextSize = 16;
            maxDropDownHeightText.SetWidth(50);
            maxDropDownHeightText.InputType    = Android.Text.InputTypes.ClassPhone;
            maxDropDownHeightText.TextChanged += (object sender, Android.Text.TextChangedEventArgs e) =>
            {
                try
                {
                    if (maxDropDownHeightText.Text.Length > 0)
                    {
                        maximum = Convert.ToInt32(e.Text.ToString());
                    }
                    else
                    {
                        maximum = 150;
                    }
                }
                catch (Exception e1) {
                }
            };

            //MaxDropDownHeightTextLayoutParams
            LinearLayout.LayoutParams maxDropDownHeightTextLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            maxDropDownHeightTextLayoutParams.SetMargins(-10, 10, 0, 0);
            LinearLayout.LayoutParams maxDropDownHeightLabelLayoutParams = new LinearLayout.LayoutParams(
                width - 10, ViewGroup.LayoutParams.WrapContent);
            maxDropDownHeightLabelLayoutParams.SetMargins(0, 10, 0, 0);

            TextView spacingText = new TextView(context);

            propertylayout.AddView(spacingText);
            //MaxDropDownHeightStack
            maxDropDownHeightStack = new LinearLayout(context);
            maxDropDownHeightStack.AddView(maxDropDownHeightLabel, maxDropDownHeightLabelLayoutParams);
            maxDropDownHeightStack.AddView(maxDropDownHeightText, maxDropDownHeightTextLayoutParams);
            maxDropDownHeightStack.Orientation = Orientation.Horizontal;
            propertylayout.AddView(maxDropDownHeightStack);

            //MaxDropDownHeightSeparate
            SeparatorView maxDropDownHeightSeparate = new SeparatorView(context, width * 2);

            maxDropDownHeightSeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams maxDropDownHeightLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            maxDropDownHeightLayoutParams.SetMargins(0, 20, 0, 0);
            // propertylayout.AddView(maxDropDownHeightSeparate, maxDropDownHeightLayoutParams);
        }
        private void CultureLayout()
        {
            /***********
            **Culture**
            ***********/
            culturetxt          = new TextView(context);
            culturetxt.TextSize = 20;
            culturetxt.Text     = "Culture";

            //Culture List
            List <String> cultureList = new List <String>();

            cultureList.Add("Chinese");
            cultureList.Add("Spanish");
            cultureList.Add("English");
            cultureList.Add("French");

            //Data Adapter
            dataAdapter = new ArrayAdapter <String>(context, Android.Resource.Layout.SimpleSpinnerItem, cultureList);
            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);

            //Culture Spinner
            cultureSpinner         = new Spinner(context, SpinnerMode.Dialog);
            cultureSpinner.Adapter = dataAdapter;

            //Culture Item Selected Listener
            cultureSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) =>
            {
                String selectedItem = dataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Chinese"))
                {
                    localinfo = Java.Util.Locale.China; //new Java.Util.Locale("en","US");
                }

                if (selectedItem.Equals("Spanish"))
                {
                    localinfo = new Java.Util.Locale("es", "AR");
                }

                if (selectedItem.Equals("English"))
                {
                    localinfo = Java.Util.Locale.Us;
                }

                if (selectedItem.Equals("French"))
                {
                    localinfo = Java.Util.Locale.France;
                }
            };

            //separate
            separate = new SeparatorView(context, width * 2);
            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);

            //Layout Params
            layoutParams1 = new LinearLayout.LayoutParams(width * 2, 5);
            layoutParams1.SetMargins(0, 20, 0, 0);
        }
        public void Dispose()
        {
            if (calendar != null)
            {
                calendar.Dispose();
                calendar = null;
            }

            if (mainView != null)
            {
                mainView.Dispose();
                mainView = null;
            }

            if (culturetxt != null)
            {
                culturetxt.Dispose();
                culturetxt = null;
            }

            if (cultureSpinner != null)
            {
                cultureSpinner.Dispose();
                cultureSpinner = null;
            }

            if (layoutParams1 != null)
            {
                layoutParams1.Dispose();
                layoutParams1 = null;
            }

            if (separate != null)
            {
                separate.Dispose();
                separate = null;
            }

            if (propertylayout != null)
            {
                propertylayout.Dispose();
                propertylayout = null;
            }

            if (dataAdapter != null)
            {
                dataAdapter.Dispose();
                dataAdapter = null;
            }

            if (localinfo != null)
            {
                localinfo.Dispose();
                localinfo = null;
            }
        }
Exemple #14
0
        private void AnimationLayout()
        {
            //cultureLabel1
            TextView cultureLabel1 = new TextView(context);

            cultureLabel1.TextSize = 20;
            cultureLabel1.Text     = "Animations";

            //transitionlist
            List <String> transitionlist = new List <String>();

            transitionlist.Add("SlideOnTop");
            transitionlist.Add("Reveal");
            transitionlist.Add("Push");

            //dataAdapter1
            dataAdapter1 = new ArrayAdapter <String>
                               (context, Android.Resource.Layout.SimpleSpinnerItem, transitionlist);
            dataAdapter1.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);;

            //animationSpinner
            animationSpinner = new Spinner(context, SpinnerMode.Dialog);
            animationSpinner.SetGravity(GravityFlags.Left);
            animationSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = dataAdapter1.GetItem(e.Position);
                if (selectedItem.Equals("SlideOnTop"))
                {
                    sliderTransition = Transition.SlideOnTop;
                }
                if (selectedItem.Equals("Reveal"))
                {
                    sliderTransition = Transition.Reveal;
                }
                if (selectedItem.Equals("Push"))
                {
                    sliderTransition = Transition.Push;
                }
            };

            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);

            animationSpinner.Adapter = dataAdapter1;
            propertylayout.AddView(cultureLabel1);
            propertylayout.AddView(animationSpinner);

            //labelSeparator1
            SeparatorView labelSeparator1 = new SeparatorView(context, width * 2);

            labelSeparator1.separatorColor   = Color.LightGray;
            labelSeparator1.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 3);
            //propertylayout.AddView(labelSeparator1, layoutParams);

            propertylayout.SetPadding(5, 0, 5, 0);
        }
Exemple #15
0
        private void positionLabelLayout()
        {
            //cultureLabel
            TextView cultureLabel = new TextView(context);

            cultureLabel.TextSize = 20;
            cultureLabel.Text     = "Position";

            //positionlist
            List <String> positionlist = new List <String>();

            positionlist.Add("Left");
            positionlist.Add("Right");
            positionlist.Add("Top");
            positionlist.Add("Bottom");

            //dataAdapter
            dataAdapter = new ArrayAdapter <String>
                              (context, Android.Resource.Layout.SimpleSpinnerItem, positionlist);
            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);

            //positionSpinner
            positionSpinner = new Spinner(context, SpinnerMode.Dialog);
            positionSpinner.SetGravity(GravityFlags.Left);
            positionSpinner.Adapter       = dataAdapter;
            positionSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = dataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Left"))
                {
                    sliderposition = Position.Left;
                }
                if (selectedItem.Equals("Right"))
                {
                    sliderposition = Position.Right;
                }
                if (selectedItem.Equals("Top"))
                {
                    sliderposition = Position.Top;
                }
                if (selectedItem.Equals("Bottom"))
                {
                    sliderposition = Position.Bottom;
                }
            };

            propertylayout.AddView(cultureLabel);
            propertylayout.AddView(positionSpinner);

            //labelSeparator
            SeparatorView labelSeparator = new SeparatorView(context, width * 2);

            labelSeparator.separatorColor   = Color.LightGray;
            labelSeparator.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 3);
            //propertylayout.AddView(labelSeparator, layoutParams);
        }
Exemple #16
0
        private void LabelPlacementLayout()
        {
            //LABEL PLACEMENT
            TextView departureLabel = new TextView(context);

            departureLabel.Text     = "  " + "Label Placement";
            departureLabel.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
            departureLabel.Gravity  = GravityFlags.Left;
            departureLabel.TextSize = 20;
            departureLabel.SetTextColor(Color.Black);
            List <String> labelList = new List <String>();

            labelList.Add("BottomRight");
            labelList.Add("TopLeft");

            //labelSpinner
            labelSpinner = new Spinner(context, SpinnerMode.Dialog);
            labelSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
                String selectedItem = dataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("TopLeft"))
                {
                    valueplacement = ValuePlacement.TopLeft;
                }
                else if (selectedItem.Equals("BottomRight"))
                {
                    valueplacement = ValuePlacement.BottomRight;
                }
            };

            //labelAdapter
            labelAdapter = new ArrayAdapter <String>(context, Android.Resource.Layout.SimpleSpinnerItem, labelList);
            labelAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            labelSpinner.Adapter = labelAdapter;
            labelSpinner.SetPadding(0, 0, 0, 0);
            LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(width * 2, 7);
            layoutParams2.SetMargins(0, 5, 0, 0);
            propertylayout.AddView(departureLabel);

            //separate2
            SeparatorView separate2 = new SeparatorView(context, width * 2);

            separate2.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 7);
            // propertylayout.AddView(separate2, layoutParams2);

            //snapsToLabel
            snapsToLabel = new TextView(context);
            snapsToLabel.SetHeight(20);
            //propertylayout.AddView(snapsToLabel);
            propertylayout.AddView(labelSpinner);
            propertylayout.SetPadding(15, 0, 15, 0);
            TextView adjLabel12 = new TextView(context);

            adjLabel12.SetHeight(20);
            propertylayout.AddView(adjLabel12);
        }
Exemple #17
0
        private void ItemCountLayout()
        {
            /************
             **ItemCount**
             *************/
            TextView itemLabel = new TextView(context);

            itemLabel.Text     = "Item Count";
            itemLabel.Gravity  = GravityFlags.CenterVertical;
            itemLabel.TextSize = 20;

            //ItemCount Text
            itemCountEntry              = new EditText(context);
            itemCountEntry.Text         = "5";
            itemCountEntry.TextSize     = 16;
            itemCountEntry.InputType    = Android.Text.InputTypes.ClassPhone;
            itemCountEntry.TextChanged += (object sender, Android.Text.TextChangedEventArgs e) => {
                if (itemCountEntry.Text.Length > 0)
                {
                    try
                    {
                        constCount = Convert.ToInt32(e.Text.ToString());
                    }
                    catch (Exception) { constCount = 1; }
                }
            };

            //EntryParams
            LinearLayout.LayoutParams entryParams = new LinearLayout.LayoutParams(width - 20, ViewGroup.LayoutParams.WrapContent);
            entryParams.Gravity = GravityFlags.Center;
            entryParams.SetMargins(-10, 10, 0, 0);
            LinearLayout.LayoutParams labelParams = new LinearLayout.LayoutParams(width - 20, ViewGroup.LayoutParams.MatchParent);
            labelParams.SetMargins(0, 10, 0, 0);

            TextView centerText = new TextView(context);

            propertylayout.AddView(centerText);
            //CountStack
            countStack = new LinearLayout(context);
            countStack.AddView(itemLabel, labelParams);

            countStack.AddView(itemCountEntry, entryParams);
            countStack.Orientation = Android.Widget.Orientation.Horizontal;
            propertylayout.AddView(countStack);

            //Separator
            SeparatorView separatorLine4 = new SeparatorView(context, width * 2);

            separatorLine4.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 3);
            layoutParams.SetMargins(0, 10, 0, 0);
            // propertylayout.AddView(separatorLine4, layoutParams);
            propertylayout.SetPadding(20, 20, 20, 20);
        }
Exemple #18
0
        private void SnapsToLayout()
        {
            //SnapsToTicks
            snapsToLabel          = new TextView(context);
            snapsToLabel.Text     = "  " + "Snaps To Tick";
            snapsToLabel.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
            snapsToLabel.Gravity  = GravityFlags.Center;
            snapsToLabel.TextSize = 20;

            //SnapsToTicks CheckBox
            Switch checkBox2 = new Switch(context);

            checkBox2.Checked        = false;
            checkBox2.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => {
                if (e.IsChecked)
                {
                    snapsto = SnapsTo.Ticks;
                }
                else
                {
                    snapsto = SnapsTo.None;
                }
            };

            //layoutParams
            LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            layoutParams5.SetMargins(0, 20, 0, 0);
            LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, 55);
            layoutParams6.SetMargins(0, 20, 0, 0);

            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);
            //stackView
            stackView4 = new LinearLayout(context);
            stackView4.AddView(snapsToLabel);
            stackView4.AddView(checkBox2, layoutParams5);
            stackView4.Orientation = droid.Horizontal;
            propertylayout.AddView(stackView4);
            SeparatorView separate4 = new SeparatorView(context, width * 2);

            separate4.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams layoutParams8 = new LinearLayout.LayoutParams(width * 2, 5);
            layoutParams8.SetMargins(0, 30, 0, 0);
            // propertylayout.AddView(separate4, layoutParams8);
            TextView textSpacing1 = new TextView(context);

            propertylayout.AddView(textSpacing1);
        }
        private void AutoReverseLayout()
        {
            /***************
            **AutoReverse**
            ***************/
            TextView autoReverseText = new TextView(context);

            autoReverseText.Text     = "AutoReverse";
            autoReverseText.Gravity  = GravityFlags.Center;
            autoReverseText.TextSize = 20;

            //AutoReverseCheckBox
            Switch autoReverseCheckBox = new Switch(context);

            autoReverseCheckBox.Checked        = false;
            autoReverseCheckBox.CheckedChange += (object send, CompoundButton.CheckedChangeEventArgs eve) => {
                if (!eve.IsChecked)
                {
                    autoReverse = false;
                }
                else
                {
                    autoReverse = true;
                }
            };
            LinearLayout.LayoutParams autoReverseCheckBoxLayoutParams = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            autoReverseCheckBoxLayoutParams.SetMargins(0, 10, 0, 0);
            LinearLayout.LayoutParams autoReverseTextLayoutParams = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent);
            autoReverseTextLayoutParams.SetMargins(0, 10, 0, 0);

            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);
            //AutoReverseLayout
            autoReverseLayout = new LinearLayout(context);
            autoReverseLayout.AddView(autoReverseText, autoReverseTextLayoutParams);
            autoReverseLayout.AddView(autoReverseCheckBox, autoReverseCheckBoxLayoutParams);
            autoReverseLayout.Orientation = Orientation.Horizontal;
            propertylayout.AddView(autoReverseLayout);

            //AutoReverseSeparate
            SeparatorView autoReverseSeparate = new SeparatorView(context, width * 2);

            autoReverseSeparate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams autoReverseLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            autoReverseLayoutParams.SetMargins(0, 20, 15, 0);
            // propertylayout.AddView(autoReverseSeparate, autoReverseLayoutParams);
            propertylayout.SetPadding(20, 20, 20, 20);
        }
        public void Dispose()
        {
            if (calendar != null)
            {
                calendar.Dispose();
                calendar = null;
            }
            if (dataAdapter != null)
            {
                dataAdapter.Dispose();
                dataAdapter = null;
            }

            if (modeSpinner != null)
            {
                modeSpinner.Dispose();
                modeSpinner = null;
            }

            if (mainView != null)
            {
                mainView.Dispose();
                mainView = null;
            }

            if (separatorLayoutParams != null)
            {
                separatorLayoutParams.Dispose();
                separatorLayoutParams = null;
            }

            if (separate != null)
            {
                separate.Dispose();
                separate = null;
            }

            if (propertylayout != null)
            {
                propertylayout.Dispose();
                propertylayout = null;
            }

            if (viewModetxt != null)
            {
                viewModetxt.Dispose();
                viewModetxt = null;
            }
        }
Exemple #21
0
        private void ShowLabelLayout()
        {
            //showLabel
            TextView showLabel = new TextView(context);

            showLabel.Text     = "  " + "Show Label";
            showLabel.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
            showLabel.Gravity  = GravityFlags.Center;
            showLabel.TextSize = 20;

            //checkBox
            Switch checkBox = new Switch(context);

            checkBox.Checked        = true;
            checkBox.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => {
                if (e.IsChecked)
                {
                    showlabel = true;
                }
                else
                {
                    showlabel = false;
                }
            };

            //layoutParams
            LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            layoutParams3.SetMargins(0, 10, 0, 0);
            LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, 55);
            layoutParams4.SetMargins(0, 10, 0, 0);

            TextView textSpacing1 = new TextView(context);

            propertylayout.AddView(textSpacing1);
            //stackView
            stackView3 = new LinearLayout(context);
            stackView3.AddView(showLabel);
            stackView3.AddView(checkBox, layoutParams3);
            stackView3.Orientation = droid.Horizontal;
            propertylayout.AddView(stackView3);
            SeparatorView separate3 = new SeparatorView(context, width * 2);

            separate3.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams(width * 2, 5);
            layoutParams7.SetMargins(0, 30, 0, 0);
            //propertylayout.AddView(separate3, layoutParams7);
        }
Exemple #22
0
        public override View GetPropertyWindowLayout(Android.Content.Context context)
        {
            int          width          = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            LinearLayout propertylayout = new LinearLayout(context);

            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
                width * 2, 2);

            groupToValue      = new TextView(context);
            groupToValue.Text = "GroupTo Value is 25";
            groupToValue.SetPadding(5, 20, 0, 20);

            SeekBar groupTo = new SeekBar(context);

            groupTo.Progress         = 25;
            groupTo.Max              = 40;
            groupTo.ProgressChanged += GroupTo_ProgressChanged;
            groupMode      = new TextView(context);
            groupMode.Text = "GroupMode";

            Spinner selectLabelMode = new Spinner(context, SpinnerMode.Dialog);

            groupModeType = new List <string>()
            {
                "Value", "Percentage", "Angle"
            };

            ArrayAdapter <string> dataAdapter = new ArrayAdapter <string>
                                                    (context, Android.Resource.Layout.SimpleSpinnerItem, groupModeType);

            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleDropDownItem1Line);
            selectLabelMode.Adapter = dataAdapter;

            selectLabelMode.ItemSelected += SelectLabelMode_ItemSelected;

            propertylayout.AddView(groupToValue);
            propertylayout.AddView(groupTo);
            propertylayout.AddView(groupMode);
            propertylayout.AddView(selectLabelMode);
            SeparatorView separate = new SeparatorView(context, width * 2);

            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            propertylayout.AddView(separate, layoutParams1);

            return(propertylayout);
        }
Exemple #23
0
        private void EnableAutoPlayLayout()
        {
            /********************
            **Enable Auto Play**
            ********************/
            TextView autoPlayLabel = new TextView(context);

            autoPlayLabel.Text     = "  " + "Enable AutoPlay";
            autoPlayLabel.Typeface = Typeface.Create("Roboto", TypefaceStyle.Bold);
            autoPlayLabel.Gravity  = GravityFlags.Center;
            autoPlayLabel.TextSize = 16;

            //Auto Play Switch
            Switch playSwitch = new Switch(context);

            playSwitch.Checked        = false;
            playSwitch.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) =>
            {
                rotator.EnableAutoPlay = e.IsChecked;
            };

            //LayoutParams
            LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            layoutParams3.SetMargins(0, 5, 0, 0);
            LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, 55);
            layoutParams4.SetMargins(0, 5, 0, 0);

            //StackView
            stackView3 = new LinearLayout(context);
            stackView3.AddView(autoPlayLabel);
            stackView3.AddView(playSwitch, layoutParams5);
            stackView3.Orientation = Orientation.Horizontal;
            propertylayout.AddView(stackView3);

            TextView textSpacing = new TextView(context);

            propertylayout.AddView(textSpacing);

            //Separater
            SeparatorView separate3 = new SeparatorView(context, width * 2);

            separate3.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 2);
            LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams(
                width * 2, 2);
            layoutParams7.SetMargins(0, 10, 0, 0);
        }
        private void SnapsToLayout(Context context)
        {
            enableRotation          = new TextView(context);
            enableRotation.Text     = "  " + "Enable Rotation";
            enableRotation.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
            enableRotation.Gravity  = GravityFlags.Center;
            enableRotation.TextSize = 16;


            Switch checkBox2 = new Switch(context);

            checkBox2.Checked        = true;
            checkBox2.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) =>
            {
                rotate = e.IsChecked;
            };

            //layoutParams
            LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            layoutParams5.SetMargins(0, 20, 0, 0);
            LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, 55);
            layoutParams6.SetMargins(0, 20, 0, 0);

            //stackView
            stackView4 = new LinearLayout(context);
            stackView4.AddView(enableRotation);
            stackView4.AddView(checkBox2, layoutParams5);
            stackView4.Orientation = Android.Widget.Orientation.Horizontal;
            propertylayout.AddView(stackView4);
            SeparatorView separate4 = new SeparatorView(context, width * 2);

            separate4.LayoutParameters = new ViewGroup.LayoutParams((int)(width * 2), 5);
            LinearLayout.LayoutParams layoutParams8 = new LinearLayout.LayoutParams((int)(width * 2), 5);
            if (IsTabletDevice(context))
            {
                layoutParams8.SetMargins(0, 30, 0, 200);
            }
            else
            {
                layoutParams8.SetMargins(0, 30, 0, 0);
            }

            propertylayout.AddView(separate4, layoutParams8);
        }
Exemple #25
0
        public override View GetPropertyWindowLayout(Context context)
        {
            int          width          = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            LinearLayout propertylayout = new LinearLayout(context);

            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
                width * 2, 5);

            layoutParams1.SetMargins(0, 20, 0, 0);

            TextView selection = new TextView(context);

            selection.TextSize = 20;
            selection.Text     = "Selection";
            selection.SetPadding(5, 20, 0, 20);

            Spinner selectLabelMode = new Spinner(context, SpinnerMode.Dialog);

            selectionMode = new List <String>()
            {
                "Data Point Selection", "Series Selection"
            };

            ArrayAdapter <String> dataAdapter = new ArrayAdapter <String>
                                                    (context, Android.Resource.Layout.SimpleSpinnerItem, selectionMode);

            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleDropDownItem1Line);
            selectLabelMode.Adapter = dataAdapter;

            selectLabelMode.ItemSelected += SelectLabelMode_ItemSelected;

            SeparatorView separate = new SeparatorView(context, width * 2);

            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);

            propertylayout.AddView(selection);
            propertylayout.AddView(selectLabelMode);
            propertylayout.AddView(separate, layoutParams1);

            return(propertylayout);
        }
        private void DescriptionLayout()
        {
            //Description
            description       = new TextView(con);
            descriptionLayout = new LinearLayout(con);
            descriptionLayout.SetPadding(0, 0, 0, 0);
            description.TextSize = 10;
            description.SetTextColor(Color.ParseColor("#282828"));
            description.SetLineSpacing(6, 2);
            description.Text = "In 1973, French street performer Philippe Petit is trying to make a living in Paris with juggling acts and wire walking, much to the chagrin of his father. During one performance, he eats a hard candy which was given to him by an audience member and injures his tooth. He visits the dentist and, while in the waiting room, sees a picture in a magazine of the Twin Towers in New York City. He analyzes the photo and decides to make it his mission to walk a tightrope between the two buildings. Meanwhile, he is evicted from his parents' house by his father, citing his lack of income and the fact that he's a street performer. Philippe returns to the circus that inspired him to wire walk as a child and practices in the big top after hours, but is caught by Papa Rudy, whom he impresses with his juggling skills. ";
            description.SetPadding(0, 0, 20, 0);
            descriptionLayout.AddView(description);
            contentLayout.AddView(descriptionLayout);
            contentLayout.LayoutParameters = new ViewGroup.LayoutParams(width, (height * 2) / 3 + 250);
            columnLayout.AddView(imageLayout);
            columnLayout.AddView(contentLayout);
            pageLayout.AddView(columnLayout);

            //Time Layout
            timeLayout = new LinearLayout(con);
            timeLayout.SetPadding(30, 35, 30, 0);
            FrameLayout.LayoutParams separatorparams = new FrameLayout.LayoutParams(width * 2, 2, GravityFlags.Center);
            SeparatorView            separatorView   = new SeparatorView(con, width * 2);

            separatorView.separatorColor = Color.ParseColor("#a5a5a5");
            timeLayout.AddView(separatorView, separatorparams);
            pageLayout.AddView(timeLayout);

            //Dummy Label
            dummyLabel2          = new TextView(con);
            dummyLabel2.TextSize = 15;
            dummyLabel2.SetPadding(30, 28, 0, 50);
            dummyLabel2.SetTextColor(Color.ParseColor("#282828"));
            dummyLabel2.Text = "Rate";
            pageLayout.AddView(dummyLabel2);

            //padLayout
            padLayout             = new LinearLayout(con);
            padLayout.Orientation = Android.Widget.Orientation.Horizontal;
            dummyLabel            = new TextView(con);
            dummyLabel.Text       = "      ";
        }
        private void ViewModeLayout()
        {
            /************
            **ViewMode**
            ************/
            viewModetxt          = new TextView(context);
            viewModetxt.TextSize = 20;
            viewModetxt.Text     = "ViewMode";
            modeSpinner          = new Spinner(context, SpinnerMode.Dialog);

            //View Mode List
            List <String> viewModeList = new List <String>();

            viewModeList.Add("Month View");
            viewModeList.Add("Year View");

            //Data Adapter
            dataAdapter = new ArrayAdapter <String>(context, Android.Resource.Layout.SimpleSpinnerItem, viewModeList);
            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            modeSpinner.Adapter = dataAdapter;

            //Mode Spinner Item Selected Listener
            modeSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) =>
            {
                String selectedItem = dataAdapter.GetItem(e.Position);
                if (selectedItem.Equals("Month View"))
                {
                    viewMode = ViewMode.MonthView;
                }

                if (selectedItem.Equals("Year View"))
                {
                    viewMode = ViewMode.YearView;
                }
            };

            //Separator
            separatorLayoutParams = new LinearLayout.LayoutParams(width * 2, 5);
            separatorLayoutParams.SetMargins(0, 20, 0, 0);
            separate = new SeparatorView(context, width * 2);
            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
        }
        private void ShowLabelLayout(Context context)
        {
            //showLabel
            TextView showLabel = new TextView(context);

            showLabel.Text     = "  " + "Enable Dragging";
            showLabel.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
            showLabel.Gravity  = GravityFlags.Center;
            showLabel.TextSize = 16;

            //checkBox
            Switch checkBox = new Switch(context);

            checkBox.Checked        = true;
            checkBox.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) =>
            {
                drag = e.IsChecked;
            };

            //layoutParams
            LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            layoutParams3.SetMargins(0, 10, 0, 0);
            LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(
                ViewGroup.LayoutParams.WrapContent, 55);
            layoutParams4.SetMargins(0, 10, 0, 0);

            //stackView
            stackView3 = new LinearLayout(context);
            stackView3.AddView(showLabel);
            stackView3.AddView(checkBox, layoutParams3);
            stackView3.Orientation = Android.Widget.Orientation.Horizontal;
            propertylayout.AddView(stackView3);
            SeparatorView separate3 = new SeparatorView(context, width * 2);

            separate3.LayoutParameters = new ViewGroup.LayoutParams((int)(width * 2), 5);
            LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams((int)(width * 2), 5);
            layoutParams7.SetMargins(0, 30, 0, 0);
            propertylayout.AddView(separate3, layoutParams7);
        }
		public override View GetPropertyWindowLayout (Android.Content.Context context)
		{
			int width = context.Resources.DisplayMetrics.WidthPixels / 2;


			propertylayout = new LinearLayout (context);
			propertylayout.Orientation = droid.Vertical;

			LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams (
				width * 2, 5);

			layoutParams.SetMargins (0, 5, 0, 0);

			TextView textView1 = new TextView (context);
			textView1.Text = "  " + "TICK PLACEMENT";
			textView1.TextSize = 15;
			textView1.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
			textView1.SetTextColor (Color.White);
			textView1.Gravity = GravityFlags.Left;
			TextView textview2 = new TextView (context);
			textview2.SetHeight (14);
			propertylayout.AddView (textview2);
			tickSpinner = new Spinner (context);
			tickSpinner.SetPadding (0, 0, 0, 0);
			propertylayout.AddView (textView1);			
			SeparatorView separate = new SeparatorView (context, width * 2);
			separate.LayoutParameters = new ViewGroup.LayoutParams (width * 2, 5);
			propertylayout.AddView (separate, layoutParams);
			TextView textview8 = new TextView (context);
			textview8.SetHeight (20);
			propertylayout.AddView (textview8);
			propertylayout.AddView (tickSpinner);
			TextView textview3 = new TextView (context);
			propertylayout.AddView (textview3);
			List<String> list = new List<String> ();

			list.Add ("BottomRight");
			list.Add ("TopLeft");
			list.Add ("Outside");
			list.Add ("Inline");
			list.Add ("None");


			dataAdapter = new ArrayAdapter<String> (context, Android.Resource.Layout.SimpleSpinnerItem, list);
			dataAdapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);

			tickSpinner.Adapter = dataAdapter;

			tickSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem = dataAdapter.GetItem (e.Position);
				if (selectedItem.Equals ("BottomRight")) {
					tickplacement = TickPlacement.BottomRight;

				} else if (selectedItem.Equals ("TopLeft")) {
					tickplacement = TickPlacement.TopLeft;

				} else if (selectedItem.Equals ("Inline")) {
					tickplacement = TickPlacement.Inline;

				} else if (selectedItem.Equals ("Outside")) {
					tickplacement = TickPlacement.Outside;

				} else if (selectedItem.Equals ("None")) {
					tickplacement = TickPlacement.None;

				}
			};


			TextView textView3 = new TextView (context);
			textView3.Text = "  " + "LABEL PLACEMENT";
			textView3.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
			textView3.Gravity = GravityFlags.Left;
			textView3.TextSize = 15;
			textView3.SetTextColor (Color.White);
			List<String> labelList = new List<String> ();
			labelList.Add ("BottomRight");
			labelList.Add ("TopLeft");

			labelSpinner = new Spinner (context);

			labelSpinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem = dataAdapter.GetItem (e.Position);
				if (selectedItem.Equals ("TopLeft")) {
					valueplacement = ValuePlacement.TopLeft;

				} else if (selectedItem.Equals ("BottomRight")) {
					valueplacement = ValuePlacement.BottomRight;


				}
			};



			labelAdapter = new ArrayAdapter<String> (context, Android.Resource.Layout.SimpleSpinnerItem, labelList);
			labelAdapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);

			labelSpinner.Adapter = labelAdapter;
			labelSpinner.SetPadding (0, 0, 0, 0);

			LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams (width * 2, 7);

			layoutParams2.SetMargins (0, 5, 0, 0);
			propertylayout.AddView (textView3);

			SeparatorView separate2 = new SeparatorView (context, width * 2);
			separate2.LayoutParameters = new ViewGroup.LayoutParams (width * 2, 7);

			propertylayout.AddView (separate2, layoutParams2);
			TextView textview9 = new TextView (context);
			textview9.SetHeight (20);
			propertylayout.AddView (textview9);
			propertylayout.AddView (labelSpinner);
			propertylayout.SetPadding (15, 0, 15, 0);
			TextView textview7 = new TextView (context);
			textview7.SetHeight (20);
			propertylayout.AddView (textview7);

			TextView textView6 = new TextView (context);
			textView6.Text = "  " + "Show Label";
			textView6.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
			textView6.Gravity = GravityFlags.Center;
			textView6.TextSize = 16;

			Switch checkBox = new Switch (context);
			checkBox.Checked = true;
			checkBox.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => {
				if (e.IsChecked)
					showlabel = true;
				else
					showlabel = false;
			};

			LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams (
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams3.SetMargins (0, 10, 0, 0);

			LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams (
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams4.SetMargins (0, 10, 0, 0);

			stackView3 = new LinearLayout (context);
			stackView3.AddView (textView6, layoutParams4);



			stackView3.AddView (checkBox, layoutParams3);
			stackView3.Orientation = droid.Horizontal;
			propertylayout.AddView (stackView3);
			SeparatorView separate3 = new SeparatorView (context, width * 2);
			separate3.LayoutParameters = new ViewGroup.LayoutParams (width * 2, 5);
			LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams (
				width * 2, 5);

			layoutParams7.SetMargins (0, 30, 0, 0);
			propertylayout.AddView (separate3, layoutParams7);

			TextView textView7 = new TextView (context);
			textView7.Text = "  "+"SnapsToTicks";
			textView7.Typeface = Typeface.Create("Roboto", TypefaceStyle.Normal);
			textView7.Gravity = GravityFlags.Center;
			textView7.TextSize = 16;

			Switch checkBox2 = new Switch (context);
			checkBox2.Checked = false;
			checkBox2.CheckedChange += (object sender, CompoundButton.CheckedChangeEventArgs e) => {
				if (e.IsChecked)
					snapsto = SnapsTo.Ticks;
				else
					snapsto = SnapsTo.None;
			};

			LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams (
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams5.SetMargins (0, 20, 0, 0);

			LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams (
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams6.SetMargins (0, 20, 0, 0);

			stackView4 = new LinearLayout (context);
			stackView4.AddView (textView7, layoutParams6);



			stackView4.AddView (checkBox2, layoutParams5);
			stackView4.Orientation = droid.Horizontal;
			propertylayout.AddView (stackView4);
			SeparatorView separate4 = new SeparatorView (context, width * 2);
			separate4.LayoutParameters = new ViewGroup.LayoutParams (width * 2, 5);
			LinearLayout.LayoutParams layoutParams8 = new LinearLayout.LayoutParams (
				width * 2, 5);

			layoutParams8.SetMargins (0, 30, 0, 0);
			propertylayout.AddView (separate4, layoutParams8);
			return propertylayout;
		}
Exemple #30
0
        private void InboxContentLayout()
        {
            //inboxLayout
            inboxLayout = new LinearLayout(context);
            inboxLayout.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
            inboxLayout.SetBackgroundColor(Color.White);
            inboxLayout.Orientation = Orientation.Vertical;
            mail1 = new LinearLayout(context);

            //userNameLabel3
            TextView userNameLabel3 = new TextView(context);

            userNameLabel3.Text     = "John";
            userNameLabel3.TextSize = 18;
            TextView updateLabel1 = new TextView(context);

            updateLabel1.Text = "Update on Timeline";
            updateLabel1.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel1.TextSize = 16;
            TextView messageLabel1 = new TextView(context);

            messageLabel1.Text = "Hi John, See you at 10AM";

            //labelSeparator3
            labelSeparator3 = new SeparatorView(context, width * 2);
            labelSeparator3.separatorColor   = Color.LightGray;
            labelSeparator3.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 3);

            //layoutParams5
            layoutParams5 = new LinearLayout.LayoutParams(width * 2, 3);
            layoutParams5.SetMargins(0, 10, 15, 0);
            messageLabel1.TextSize = 13;
            mail1.AddView(userNameLabel3);
            mail1.AddView(messageLabel1);

            //mail2
            mail2 = new LinearLayout(context);
            TextView userNameLabel4 = new TextView(context);

            userNameLabel4.Text     = "Caster";
            userNameLabel4.TextSize = 18;
            TextView updateLabel2 = new TextView(context);

            updateLabel2.Text = "Update on Timeline";
            updateLabel2.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel2.TextSize = 16;
            TextView messageLabel2 = new TextView(context);

            messageLabel2.Text     = "Hi Caster, See you at 11AM";
            messageLabel2.TextSize = 13;
            mail2.AddView(userNameLabel4);
            mail2.AddView(messageLabel2);
            labelSeparator4 = new SeparatorView(context, width * 2);
            labelSeparator4.separatorColor   = Color.LightGray;
            labelSeparator4.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail3
            mail3 = new LinearLayout(context);
            TextView userNameLabel5 = new TextView(context);

            userNameLabel5.Text     = "Joey";
            userNameLabel5.TextSize = 18;
            TextView updateLabel3 = new TextView(context);

            updateLabel3.Text = "Update on Timeline";
            updateLabel3.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel3.TextSize = 16;
            TextView messageLabel3 = new TextView(context);

            messageLabel3.Text     = "Hi Joey, See you at 1PM";
            messageLabel3.TextSize = 13;
            mail3.AddView(userNameLabel5);
            mail3.AddView(messageLabel3);
            labelSeparator5 = new SeparatorView(context, width * 2);
            labelSeparator5.separatorColor   = Color.LightGray;
            labelSeparator5.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail4
            mail4 = new LinearLayout(context);
            TextView userNameLabel6 = new TextView(context);

            userNameLabel6.Text     = "Xavier";
            userNameLabel6.TextSize = 18;
            TextView updateLabel4 = new TextView(context);

            updateLabel4.Text = "Update on Timeline";
            updateLabel4.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel4.TextSize = 16;
            TextView messageLabel4 = new TextView(context);

            messageLabel4.Text     = "Hi Xavier, See you at 2PM";
            messageLabel4.TextSize = 13;
            mail4.AddView(userNameLabel6);
            mail4.AddView(messageLabel4);
            labelSeparator6 = new SeparatorView(context, width * 2);
            labelSeparator6.separatorColor   = Color.LightGray;
            labelSeparator6.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail9
            mail9 = new LinearLayout(context);
            TextView userNameLabel7 = new TextView(context);

            userNameLabel7.Text     = "Gonzalez";
            userNameLabel7.TextSize = 18;
            TextView updateLabel5 = new TextView(context);

            updateLabel5.Text = "Update on Timeline";
            updateLabel5.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel5.TextSize = 16;
            TextView messageLabel5 = new TextView(context);

            messageLabel5.Text     = "Hi Gonzalez, See you at 3PM";
            messageLabel5.TextSize = 13;
            mail9.AddView(userNameLabel7);
            mail9.AddView(messageLabel5);
            labelSeparator7 = new SeparatorView(context, width * 2);
            labelSeparator7.separatorColor   = Color.LightGray;
            labelSeparator7.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail10
            mail10 = new LinearLayout(context);
            TextView userNameLabel8 = new TextView(context);

            userNameLabel8.Text     = "Rodriguez";
            userNameLabel8.TextSize = 18;
            TextView updateLabel6 = new TextView(context);

            updateLabel6.Text = "Update on Timeline";
            updateLabel6.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel6.TextSize = 16;
            TextView messageLabel6 = new TextView(context);

            messageLabel6.Text     = "Hi Rodriguez, See you at 4PM";
            messageLabel6.TextSize = 13;
            mail10.AddView(userNameLabel8);
            mail10.AddView(messageLabel6);
            labelSeparator8 = new SeparatorView(context, width * 2);
            labelSeparator8.separatorColor   = Color.LightGray;
            labelSeparator8.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail11
            mail11 = new LinearLayout(context);
            TextView userNameLabel9 = new TextView(context);

            userNameLabel9.Text     = "Ruben";
            userNameLabel9.TextSize = 18;
            TextView updateLabel7 = new TextView(context);

            updateLabel7.Text = "Update on Timeline";
            updateLabel7.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel7.TextSize = 16;
            TextView messageLabel7 = new TextView(context);

            messageLabel7.Text     = "Hi Ruben, See you at 6PM";
            messageLabel7.TextSize = 13;
            mail11.AddView(userNameLabel9);
            mail11.AddView(messageLabel7);
            labelSeparator9 = new SeparatorView(context, width * 2);
            labelSeparator9.separatorColor   = Color.LightGray;
            labelSeparator9.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //mail Orientation
            mail1.Orientation  = Orientation.Vertical;
            mail2.Orientation  = Orientation.Vertical;
            mail3.Orientation  = Orientation.Vertical;
            mail4.Orientation  = Orientation.Vertical;
            mail9.Orientation  = Orientation.Vertical;
            mail10.Orientation = Orientation.Vertical;
            mail11.Orientation = Orientation.Vertical;

            //mail LayoutParameters
            mail1.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail1.SetPadding(20, 10, 10, 5);
            mail2.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail2.SetPadding(20, 10, 10, 5);
            mail3.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail3.SetPadding(20, 10, 10, 5);
            mail4.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail4.SetPadding(20, 10, 10, 5);
            mail9.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail9.SetPadding(20, 10, 10, 5);
            mail10.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail10.SetPadding(20, 10, 10, 5);
            mail11.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail11.SetPadding(20, 10, 10, 5);

            //inboxview
            inboxLayout.SetPadding(20, 0, 20, 20);
            inboxLayout.AddView(mail1);
            inboxLayout.AddView(labelSeparator3, layoutParams5);
            inboxLayout.AddView(mail2);
            inboxLayout.AddView(labelSeparator4, layoutParams5);
            inboxLayout.AddView(mail3);
            inboxLayout.AddView(labelSeparator5, layoutParams5);
            inboxLayout.AddView(mail4);
            inboxLayout.AddView(labelSeparator6, layoutParams5);
            inboxLayout.AddView(mail9);
            inboxLayout.AddView(labelSeparator7, layoutParams5);
            inboxLayout.AddView(mail10);
            inboxLayout.AddView(labelSeparator9, layoutParams5);
            inboxLayout.AddView(mail11);
            inboxLayout.AddView(labelSeparator8, layoutParams5);
        }
		public override View GetPropertyWindowLayout (Context context)
		{
			/**
		 * Property Window
		 * */
			int width = (context.Resources.DisplayMetrics.WidthPixels) / 2;
			propertylayout = new LinearLayout(context); //= new LinearLayout(context);
			propertylayout.Orientation=Orientation.Vertical;

			LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
				width * 2, 5);

			layoutParams1.SetMargins(0, 20, 0, 0);

			TextView culturetxt = new TextView(context);
			culturetxt.TextSize=20;
			culturetxt.Text="Culture";

			cultureSpinner = new Spinner(context);
			//cultureSpinner.Gravity=GravityFlags.Left;


			List<String> list = new List<String>();

			list.Add("United States");
			list.Add("United Kingdom");
			list.Add("Japan");
			list.Add("France");
			list.Add("Italy");


			dataAdapter = new ArrayAdapter<String>
				(context, Android.Resource.Layout.SimpleSpinnerItem, list);
			dataAdapter.SetDropDownViewResource
			(Android.Resource.Layout.SimpleSpinnerDropDownItem);

			cultureSpinner.Adapter = dataAdapter;

			cultureSpinner.ItemSelected+= (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem = dataAdapter.GetItem(e.Position);

				if (selectedItem.Equals("United States")) {
					localinfo=Java.Util.Locale.Us; //new Java.Util.Locale("en","US");
				}
				if (selectedItem.Equals("United Kingdom")) {
					localinfo=Java.Util.Locale.Uk;
										
				}
				if (selectedItem.Equals("Japan")) {
					localinfo=Java.Util.Locale.Japan;
				}
				if (selectedItem.Equals("France")) {
					localinfo=Java.Util.Locale.France;
				}
				if (selectedItem.Equals("Italy")) {
					localinfo=Java.Util.Locale.Italy;
				}

			};
			propertylayout.AddView(culturetxt);
			propertylayout.AddView(cultureSpinner);

			SeparatorView separate = new SeparatorView(context, width * 2);
			separate.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 5);
			propertylayout.AddView(separate, layoutParams1);

			TextView textView6 = new TextView(context);
			textView6.Text="Allow Null";
			textView6.Gravity=GravityFlags.Center;
			textView6.TextSize=20;

			Switch checkBox = new Switch(context);
			checkBox.Checked=true;
			checkBox.CheckedChange+= (object send, CompoundButton.CheckedChangeEventArgs eve) => {
				if(!eve.IsChecked)
					allownull = false;
				else
					allownull = true;
			};

			LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams3.SetMargins(0, 10, 0, 0);
			LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams4.SetMargins(0, 10, 0, 0);
			stackView3 = new LinearLayout(context);
			stackView3.AddView(textView6,layoutParams4);
			stackView3.AddView(checkBox, layoutParams3);
			stackView3.Orientation=Orientation.Horizontal;
			propertylayout.AddView(stackView3);
			SeparatorView separate3 = new SeparatorView(context, width * 2);
			separate3.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 5);
			LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(width * 2, 5);
			layoutParams5.SetMargins(0, 20, 15, 0);
			propertylayout.AddView(separate3, layoutParams5);
			propertylayout.SetPadding(20,20,20,20);
			
			return  propertylayout;
		}
		public override View GetPropertyWindowLayout (Context context)
		{
			int width = (context.Resources.DisplayMetrics.WidthPixels) / 2;
			propertylayout = new LinearLayout(context);
			propertylayout.Orientation = Orientation.Vertical;

			LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
				width * 2, 3);

			layoutParams.SetMargins(0, 20, 0, 0);

			TextView culture = new TextView(context);
			culture.TextSize=20;
			culture.Text="Position";

			positionSpinner = new Spinner(context);
			positionSpinner.SetGravity(GravityFlags.Left);


			List<String> list = new List<String>();

			list.Add("Left");
			list.Add("Right");
			list.Add("Top");
			list.Add("Bottom");


			dataAdapter = new ArrayAdapter<String>
				(context, Android.Resource.Layout.SimpleSpinnerItem, list);
			dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);


			positionSpinner.Adapter = dataAdapter;
			positionSpinner.ItemSelected+= (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem= dataAdapter.GetItem(e.Position);
				if (selectedItem.Equals("Left")) {
					sliderposition = Position.Left;
				}
				if (selectedItem.Equals("Right")) {
					sliderposition = Position.Right;
				}
				if (selectedItem.Equals("Top")) {
					sliderposition = Position.Top;
				}
				if (selectedItem.Equals("Bottom")) {
					sliderposition = Position.Bottom;
				}
			};

			propertylayout.AddView(culture);
			propertylayout.AddView(positionSpinner);

			SeparatorView separate = new SeparatorView(context, width * 2);
			separate.separatorColor = Color.LightGray;
			separate.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 3);
			propertylayout.AddView(separate, layoutParams);

			TextView culture2 = new TextView(context);
			culture2.TextSize=20;
			culture2.Text="Animations";

			animationSpinner = new Spinner(context);

			animationSpinner.SetGravity(GravityFlags.Left);


			List<String> list2 = new List<String>();

			list2.Add("SlideOnTop");
			list2.Add("Reveal");
			list2.Add("Push");



			dataAdapter1 = new ArrayAdapter<String>
				(context, Android.Resource.Layout.SimpleSpinnerItem, list2);

			dataAdapter1.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);;

			animationSpinner.ItemSelected+= (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem= dataAdapter1.GetItem(e.Position);
				if (selectedItem.Equals("SlideOnTop")) {
					sliderTransition = Transition.SlideOnTop;
				}
				if (selectedItem.Equals("Reveal")) {
					sliderTransition =Transition.Reveal;
				}
				if (selectedItem.Equals("Push")) {
					sliderTransition =Transition.Push;
				}
			};

			animationSpinner.Adapter = dataAdapter1;
			propertylayout.AddView(culture2);
			propertylayout.AddView(animationSpinner);

			SeparatorView separate2 = new SeparatorView(context, width * 2);
			separate2.separatorColor = Color.LightGray;
			separate2.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 3);
			propertylayout.AddView(separate2, layoutParams);

			propertylayout.SetPadding(20,20,20,20);

			return propertylayout;
		}
Exemple #33
0
        private void OutBoxLayout()
        {
            //outboxlayout
            outboxlayout = new LinearLayout(context);
            outboxlayout.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent));
            outboxlayout.SetBackgroundColor(Color.White);
            outboxlayout.Orientation = (Orientation.Vertical);

            //mail5
            mail5 = new LinearLayout(context);
            TextView userNameLabel10 = new TextView(context);

            userNameLabel10.Text     = "Ruben";
            userNameLabel10.TextSize = 20;
            TextView updateLabel8 = new TextView(context);

            updateLabel8.Text = "Update on Timeline";
            updateLabel8.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel8.TextSize = 16;
            TextView messageLabel8 = new TextView(context);

            messageLabel8.Text = "Hi Ruben, see you at 6PM";
            labelSeparator10   = new SeparatorView(context, width * 2);
            labelSeparator10.separatorColor   = Color.LightGray;
            labelSeparator10.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            messageLabel8.TextSize            = 13;
            mail5.AddView(userNameLabel10);
            mail5.AddView(messageLabel8);

            //mail6
            mail6 = new LinearLayout(context);
            TextView userNameLabel11 = new TextView(context);

            userNameLabel11.Text     = "Rodriguez";
            userNameLabel11.TextSize = 20;
            TextView updateLabel9 = new TextView(context);

            updateLabel9.Text = "Update on Timeline";
            updateLabel9.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel9.TextSize = 16;
            TextView messageLabel9 = new TextView(context);

            messageLabel9.Text     = "Hi Rodriguez, see you at 4PM";
            messageLabel9.TextSize = 13;
            mail6.AddView(userNameLabel11);
            mail6.AddView(messageLabel9);

            //mail12
            mail12 = new LinearLayout(context);
            TextView userNameLabel12 = new TextView(context);

            userNameLabel12.Text     = "Gonzalez";
            userNameLabel12.TextSize = 20;
            TextView updateLabel10 = new TextView(context);

            updateLabel10.Text = "Update on Timeline";
            updateLabel10.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel10.TextSize = 16;
            TextView messageLabel10 = new TextView(context);

            messageLabel10.Text = "Hi Gonzalez, see you at 3PM";
            mail12.AddView(userNameLabel12);
            mail12.AddView(messageLabel10);
            labelSeparator11 = new SeparatorView(context, width * 2);
            labelSeparator11.separatorColor   = Color.LightGray;
            labelSeparator11.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail12.Orientation = Orientation.Vertical;
            mail12.Orientation = (Orientation.Vertical);
            mail5.Orientation  = Orientation.Vertical;
            mail6.Orientation  = Orientation.Vertical;

            //mail13
            mail13 = new LinearLayout(context);
            TextView userNameLabel13 = new TextView(context);

            userNameLabel13.Text     = "Xavier";
            userNameLabel13.TextSize = 20;
            TextView updateLabel11 = new TextView(context);

            updateLabel11.Text = "Update on Timeline";
            updateLabel11.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel11.TextSize = 16;
            TextView messageLabel11 = new TextView(context);

            messageLabel11.Text               = "Hi Xavier, see you at 2PM";
            labelSeparator12                  = new SeparatorView(context, width * 2);
            labelSeparator12.separatorColor   = Color.LightGray;
            labelSeparator12.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail13.AddView(userNameLabel13);
            mail13.AddView(messageLabel11);
            mail13.Orientation = (Orientation.Vertical);
            mail13.Orientation = (Orientation.Vertical);

            //mail14
            mail14 = new LinearLayout(context);
            TextView userNameLabel14 = new TextView(context);

            userNameLabel14.Text     = "Joey";
            userNameLabel14.TextSize = 20;
            TextView updateLabel12 = new TextView(context);

            updateLabel12.Text = "Update on Timeline";
            updateLabel12.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel12.TextSize = 16;
            TextView messageLabel12 = new TextView(context);

            messageLabel12.Text               = "Hi Joey, see you at 1PM";
            labelSeparator13                  = new SeparatorView(context, width * 2);
            labelSeparator13.separatorColor   = Color.LightGray;
            labelSeparator13.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail14.AddView(userNameLabel14);
            mail14.AddView(messageLabel12);
            mail14.Orientation = (Orientation.Vertical);
            mail14.Orientation = (Orientation.Vertical);

            //mail15
            mail15 = new LinearLayout(context);
            TextView userNameLabel15 = new TextView(context);

            userNameLabel15.Text     = "Joey";
            userNameLabel15.TextSize = 20;
            TextView updateLabel13 = new TextView(context);

            updateLabel13.Text = "Update on Timeline";
            updateLabel13.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel13.TextSize = 16;
            TextView messageLabel13 = new TextView(context);

            messageLabel13.Text               = "Hi Joey, see you at 1PM";
            labelSeparator14                  = new SeparatorView(context, width * 2);
            labelSeparator14.separatorColor   = Color.LightGray;
            labelSeparator14.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail15.AddView(userNameLabel15);
            mail15.AddView(messageLabel13);
            mail15.Orientation = (Orientation.Vertical);
            mail15.Orientation = (Orientation.Vertical);

            //mail16
            mail16 = new LinearLayout(context);
            TextView userNameLabel16 = new TextView(context);

            userNameLabel16.Text     = ("Caster");
            userNameLabel16.TextSize = (20);
            TextView updateLabel14 = new TextView(context);

            updateLabel14.Text = ("Update on Timeline");
            updateLabel14.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel14.TextSize = (16);
            TextView messageLabel14 = new TextView(context);

            messageLabel14.Text               = ("Hi Caster, see you at 11PM");
            labelSeparator15                  = new SeparatorView(context, width * 2);
            labelSeparator15.separatorColor   = Color.LightGray;
            labelSeparator15.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail16.AddView(userNameLabel16);
            mail16.AddView(messageLabel14);
            mail16.Orientation = (Orientation.Vertical);
            mail16.Orientation = (Orientation.Vertical);

            //mail17
            mail17 = new LinearLayout(context);
            TextView userNameLabel17 = new TextView(context);

            userNameLabel17.Text     = "john";
            userNameLabel17.TextSize = 20;
            TextView updateLabel15 = new TextView(context);

            updateLabel15.Text = ("Update on Timeline");
            updateLabel15.SetTextColor(Color.ParseColor("#1CAEE4"));
            updateLabel15.TextSize = (16);
            TextView messageLabel15 = new TextView(context);

            messageLabel15.Text               = ("Hi John, see you at 10AM");
            labelSeparator16                  = new SeparatorView(context, width * 2);
            labelSeparator16.separatorColor   = Color.LightGray;
            labelSeparator16.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));
            mail17.AddView(userNameLabel17);
            mail17.AddView(messageLabel15);
            mail17.Orientation = (Orientation.Vertical);
            mail17.Orientation = (Orientation.Vertical);

            //mail LayoutParameters
            mail6.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail6.SetPadding(20, 10, 10, 10);
            mail5.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail5.SetPadding(20, 10, 10, 5);
            mail12.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail12.SetPadding(20, 10, 10, 5);
            mail13.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail13.SetPadding(20, 10, 10, 5);
            mail14.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail14.SetPadding(20, 10, 10, 5);
            mail15.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail15.SetPadding(20, 10, 10, 5);
            mail16.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail16.SetPadding(20, 10, 10, 5);
            mail17.LayoutParameters = (new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
            mail17.SetPadding(20, 10, 10, 5);

            labelSeparator17 = new SeparatorView(context, width * 2);
            labelSeparator17.separatorColor   = Color.LightGray;
            labelSeparator17.LayoutParameters = (new ViewGroup.LayoutParams(width * 2, 3));

            //outboxView
            outboxlayout.SetPadding(20, 0, 20, 20);
            outboxlayout.AddView(mail5);
            outboxlayout.AddView(labelSeparator17, layoutParams5);
            outboxlayout.AddView(mail6);
            outboxlayout.AddView(labelSeparator10, layoutParams5);
            outboxlayout.AddView(mail12);
            outboxlayout.AddView(labelSeparator11, layoutParams5);
            outboxlayout.AddView(mail13);
            outboxlayout.AddView(labelSeparator12, layoutParams5);
            outboxlayout.AddView(mail15);
            outboxlayout.AddView(labelSeparator14, layoutParams5);
            outboxlayout.AddView(mail16);
            outboxlayout.AddView(labelSeparator15, layoutParams5);
            outboxlayout.AddView(mail17);
            outboxlayout.AddView(labelSeparator16, layoutParams5);
        }
		public override View GetPropertyWindowLayout (Android.Content.Context context)
		{
			int width = context.Resources.DisplayMetrics.WidthPixels / 2;
			propertylayout = new LinearLayout(context);
			propertylayout.Orientation = Orientation.Vertical;
			LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
				width * 2, 5);
			layoutParams.SetMargins(0, 20, 0, 0);
			//SuggestionMode
			TextView textView1 = new TextView(context);
			textView1.Text = "Suggestion Mode";
			textView1.TextSize=20;
			textView1.Gravity  = GravityFlags.Left;
			TextView textview2 = new TextView(context);
			propertylayout.AddView(textview2);
			spinner1 = new Spinner(context);
			//spinner1.Gravity  = GravityFlags.Left;
			propertylayout.AddView(textView1);
			propertylayout.AddView(spinner1);
			List<String> list = new List<String>();
			list.Add("StartsWith");
			list.Add("StartsWithCaseSensitive");
			list.Add("Contains");
			list.Add("ContainsWithCaseSensitive");
			list.Add("EndsWith");
			list.Add("EndsWithCaseSensitive");
			list.Add("Equals");
			list.Add("EqualsWithCaseSensitive");
			//list.add("None");

			dataAdapter = new ArrayAdapter<String> (context, Android.Resource.Layout.SimpleSpinnerItem, list);
			dataAdapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);

			spinner1.Adapter = dataAdapter;

			spinner1.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem = dataAdapter.GetItem (e.Position);
				
				if (selectedItem.Equals ("StartsWith")) {
					suggestionModes = SuggestionMode.StartsWith;
									
				} else if (selectedItem.Equals ("StartsWithCaseSensitive")) {
					suggestionModes = SuggestionMode.StartsWithCaseSensitive;
										
				} else if (selectedItem.Equals ("Contains")) {
					suggestionModes = SuggestionMode.Contains;
									
				} else if (selectedItem.Equals ("ContainsWithCaseSensitive")) {
					suggestionModes = SuggestionMode.ContainsWithCaseSensitive;
										
				} else if (selectedItem.Equals ("EndsWith")) {
					suggestionModes = SuggestionMode.EndsWith;
										
				} else if (selectedItem.Equals ("EndsWithCaseSensitive")) {
					suggestionModes = SuggestionMode.EndsWithCaseSensitive;
										
				} else if (selectedItem.Equals ("Equals")) {
					suggestionModes = SuggestionMode.Equals;
										
				} else if (selectedItem.Equals ("EqualsWithCaseSensitive")) {
					suggestionModes = SuggestionMode.EqualsWithCaseSensitive;
										
				}
			};
			//Separator 1
			SeparatorView separate = new SeparatorView(context, width * 2);
			separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
			LinearLayout.LayoutParams layoutParam1 = new LinearLayout.LayoutParams(
				width * 2, 5);
			layoutParam1.SetMargins(0, 20, 0, 0);
			propertylayout.AddView(separate,layoutParam1);

			//AutoCompleteMode
			TextView textV1 = new TextView(context);
			textV1.Text = "AutoComplete Mode";
			textV1.TextSize=20;
			textV1.Gravity = GravityFlags.Left;
			TextView textv2 = new TextView(context);
			propertylayout.AddView(textv2);
			text3 = new Spinner(context);
			propertylayout.AddView(textV1);
			propertylayout.AddView(text3);
			List<String> list1 = new List<String>();
			list1.Add("Suggest");
			list1.Add("SuggestAppend");
			list1.Add("Append");

			dataadapter1 = new ArrayAdapter<String> (context, Android.Resource.Layout.SimpleSpinnerItem, list1);
			dataadapter1.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);

			text3.Adapter = dataadapter1;

			text3.ItemSelected+= (object sender, AdapterView.ItemSelectedEventArgs e) => {
				String selectedItem = dataadapter1.GetItem(e.Position);
									if (selectedItem.Equals("Suggest")) {
										autoCompleteMode = AutoCompleteMode.Suggest;
										
									} else if (selectedItem.Equals("SuggestAppend")) {
										autoCompleteMode = AutoCompleteMode.SuggestAppend;
										
									} else if (selectedItem.Equals("Append")) {
										autoCompleteMode = AutoCompleteMode.Append;
										
									}
			};

			//Separator 2
			SeparatorView separate1 = new SeparatorView(context, width * 2);
			separate1.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);

			LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(
				width * 2, 5);
			layoutParams2.SetMargins(0, 20, 0, 0);
			propertylayout.SetPadding(15, 0, 15, 0);

			//Separator 2
			SeparatorView separate2 = new SeparatorView(context, width * 2);
			separate2.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
			propertylayout.AddView(separate2, layoutParams2);

			//Min Prefix Character
			TextView textView7 = new TextView(context);
			textView7.Text = "Min Prefix Character";
			textView7.SetWidth(400);
			textView7.TextSize=20;
			etext1 = new EditText(context);
			etext1.Text = "1";
			etext1.TextSize=16;
			etext1.InputType = Android.Text.InputTypes.ClassPhone;
			etext1.TextChanged+= (object sender, Android.Text.TextChangedEventArgs e) => 
			{
				if(etext1.Text.Length > 0)
					minimum =  Convert.ToInt32(e.Text.ToString());
				else
					minimum = 1;
			};

			LinearLayout.LayoutParams layoutParams7 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams7.SetMargins(0, 10, 0, 0);
			LinearLayout.LayoutParams layoutParams8 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams8.SetMargins(0, 10, 0, 0);
			stackView2 = new LinearLayout(context);
			stackView2.AddView(textView7,layoutParams8);
			stackView2.AddView(etext1, layoutParams7);
			stackView2.Orientation = Orientation.Horizontal;
			propertylayout.AddView(stackView2);
			SeparatorView separate4 = new SeparatorView(context, width * 2);
			separate4.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
			LinearLayout.LayoutParams layoutParams6 = new LinearLayout.LayoutParams(width * 2, 5);
			layoutParams6.SetMargins(0, 20, 15, 0);
			propertylayout.AddView(separate4, layoutParams6);

			//max DropDown height
			TextView textView8 = new TextView(context);
			textView8.Text = "Max DropDown Height";
			textView8.SetWidth(400);
			textView8.TextSize=20;
			etext2 = new EditText(context);
			etext2.Text = "200";
			etext2.TextSize=16;
			etext2.InputType = Android.Text.InputTypes.ClassPhone;
			etext2.TextChanged+= (object sender, Android.Text.TextChangedEventArgs e) => 
			{
				if(etext2.Text.Length>0)
					maximum =  Convert.ToInt32(e.Text.ToString());
				else
					maximum = 200;
			};

			LinearLayout.LayoutParams layoutParams9 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams9.SetMargins(0, 10, 0, 0);
			LinearLayout.LayoutParams layoutParams10 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams10.SetMargins(0, 10, 0, 0);
			stackView3 = new LinearLayout(context);
			stackView3.AddView(textView8,layoutParams10);
			stackView3.AddView(etext2, layoutParams9);
			stackView3.Orientation = Orientation.Horizontal;
			propertylayout.AddView(stackView3);
			SeparatorView separate5 = new SeparatorView(context, width * 2);
			separate5.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
			LinearLayout.LayoutParams layoutParams11 = new LinearLayout.LayoutParams(width * 2, 5);
			layoutParams11.SetMargins(0, 20, 15, 0);
			propertylayout.AddView(separate5, layoutParams11);

			//Popup Delay
			TextView textView9 = new TextView(context);
			textView9.Text = "PopUp Delay";
			textView9.SetWidth(400);
			textView9.TextSize=20;
			etext3 = new EditText(context);
			etext3.Text = "100";
			etext3.TextSize=16;
			etext3.InputType = Android.Text.InputTypes.ClassPhone;
			etext1.SetWidth(50);
			etext2.SetWidth(50);
			etext3.SetWidth(50);

			etext3.TextChanged+= (object sender, Android.Text.TextChangedEventArgs e) => 
			{
				if(etext3.Text.Length>0)
					popupdelay=  Convert.ToInt32(e.Text.ToString());
				else
					popupdelay = 100;
			};
			LinearLayout.LayoutParams layoutParams12 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			layoutParams12.SetMargins(0, 10, 0, 0);
			LinearLayout.LayoutParams layoutParams13 = new LinearLayout.LayoutParams(
				ViewGroup.LayoutParams.WrapContent, 55);
			layoutParams13.SetMargins(0, 10, 0, 0);
			stackView4 = new LinearLayout(context);
			stackView4.AddView(textView9,layoutParams13);
			stackView4.AddView(etext3, layoutParams12);
			stackView4.Orientation = Orientation.Horizontal;
			propertylayout.AddView(stackView4);
			SeparatorView separate6 = new SeparatorView(context, width * 2);
			separate6.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 5);
			LinearLayout.LayoutParams layoutParams14 = new LinearLayout.LayoutParams(width * 2, 5);
			layoutParams14.SetMargins(0, 20, 15, 0);
			propertylayout.AddView(separate6, layoutParams14);

			return propertylayout;

		}
        public override View GetPropertyWindowLayout(Android.Content.Context context)
        {
            /**
     * Property Window
     * */
            int width = (context.Resources.DisplayMetrics.WidthPixels) / 2;
            LinearLayout propertylayout = new LinearLayout(context); //= new LinearLayout(context);
            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            LinearLayout.LayoutParams layoutParams1 = new LinearLayout.LayoutParams(
                width * 2, 5);

            layoutParams1.SetMargins(0, 20, 0, 0);

            TextView labelDisplayMode = new TextView(context);
            labelDisplayMode.TextSize = 20;
            labelDisplayMode.Text = "LabelDisplay Mode";

            Spinner selectLabelMode = new Spinner(context);
            
            List<String> adapter = new List<String>() { "FloatAllPoints", "NearestPoint", "GroupAllPoints" };
            ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>
                (context, Android.Resource.Layout.SimpleSpinnerItem, adapter);
            dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleDropDownItem1Line);
            selectLabelMode.Adapter = dataAdapter;

            selectLabelMode.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) =>
            {
                String selectedItem = dataAdapter.GetItem(e.Position);
                ChartTrackballBehavior trackballBehavior = (chart.Behaviors.Get(0) as ChartTrackballBehavior);
                if (selectedItem.Equals("NearestPoint"))
                {
                    trackballBehavior.LabelDisplayMode = TrackballLabelDisplayMode.NearestPoint;
                }
                else if (selectedItem.Equals("FloatAllPoints"))
                {
                    trackballBehavior.LabelDisplayMode = TrackballLabelDisplayMode.FloatAllPoints;
                }
                else if (selectedItem.Equals("GroupAllPoints"))
                {
                    trackballBehavior.LabelDisplayMode = TrackballLabelDisplayMode.GroupAllPoints;
                }
            };

            propertylayout.AddView(labelDisplayMode);
            SeparatorView separate = new SeparatorView(context, width * 2);
            separate.LayoutParameters = new ViewGroup.LayoutParams(width * 2, 5);
            propertylayout.AddView(separate, layoutParams1);
            propertylayout.AddView(selectLabelMode);

           

            return propertylayout;
        }
		public override View GetSampleContent (Context context)
		{
			btn = new Button(context);
			btn.SetBackgroundResource(Resource.Drawable.burgericon);
			FrameLayout.LayoutParams btlayoutParams = new FrameLayout.LayoutParams(42,32, GravityFlags.Center);

			btn.LayoutParameters = btlayoutParams;
			btn.SetPadding (10,0,0,0);
			btn.Gravity=GravityFlags.CenterVertical;


			TextView textView = new TextView(context);
			textView.TextSize=20;
			textView.Text="Home";
			textView.SetTextColor (Color.White);
			textView.Gravity=GravityFlags.Center;
			LinearLayout linearLayout =  new LinearLayout(context);
			FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, 70, GravityFlags.Center);
			layoutParams.SetMargins (10,0,0,0);
			linearLayout.SetPadding (10,0,0,0);
			linearLayout.AddView(btn);linearLayout.AddView(textView,layoutParams);
			linearLayout.SetBackgroundColor(Color.Rgb(47,173,227));



			height = context.Resources.DisplayMetrics.HeightPixels-75;
			width =context.Resources.DisplayMetrics.WidthPixels;

			LinearLayout linear2 = new LinearLayout(context);
			linear2.Orientation=Orientation.Vertical;
			linear2.LayoutParameters = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
			FrameLayout.LayoutParams layout2= new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent, GravityFlags.Center);
			linear2.AddView(linearLayout,layout2);

			/**
			 * Main Content
			 * */




			FrameLayout gridLayout = new FrameLayout(context);
			gridLayout.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);

			/**
         * item1
         */

			FrameLayout grid1 = new FrameLayout(context);
			ImageView img1 = new ImageView(context);
			img1.SetScaleType (ImageView.ScaleType.FitXy);
			img1.SetImageResource(Resource.Drawable.profile);

			FrameLayout.LayoutParams layoutParams1 = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent, GravityFlags.Center);

			grid1.AddView(img1, layoutParams1);

			grid1.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 100)/3);

			/**
         * item2
         */

			FrameLayout grid2 = new FrameLayout(context);
			ImageView img2 = new ImageView(context);
			img2.SetImageResource(Resource.Drawable.inbox);
			img2.SetScaleType (ImageView.ScaleType.FitXy);
			grid2.AddView(img2, layoutParams1);
			grid2.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 100)/3);

			/**
         * item3
         */

			FrameLayout grid3 = new FrameLayout(context);
			ImageView img3 = new ImageView(context);
			img3.SetImageResource(Resource.Drawable.outbox);
			img3.SetScaleType (ImageView.ScaleType.FitXy);
			grid3.AddView(img3, layoutParams1);
			grid3.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 100)/3);


			/**
         * item4
         */

			FrameLayout grid4 = new FrameLayout(context);
			ImageView img4 = new ImageView(context);
			img4.SetImageResource(Resource.Drawable.flag);
			img4.SetScaleType (ImageView.ScaleType.FitXy);
			grid4.AddView(img4, layoutParams1);
			grid4.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 100)/3);
			/**
         * item5
         */
			FrameLayout grid5 = new FrameLayout(context);
			ImageView img5 = new ImageView(context);
			img5.SetImageResource(Resource.Drawable.trash);
			img5.SetScaleType (ImageView.ScaleType.FitXy);

			grid5.AddView(img5, layoutParams1);

			grid5.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 155)/3);



			/**
         * item6
         */



			FrameLayout grid6 = new FrameLayout(context);
			ImageView img6 = new ImageView(context);
			img6.SetImageResource(Resource.Drawable.power);		
			grid6.AddView(img6, layoutParams1);
			img6.SetScaleType (ImageView.ScaleType.FitXy);
			grid6.LayoutParameters=new ViewGroup.LayoutParams((width-20) / 2,(height - 155)/3);


			img1.SetPadding (0,0,0,3);
			img2.SetPadding (-1,0,0,3);
			img3.SetPadding (0,0,0,0);
			img4.SetPadding (-1,0,0,0);
			img5.SetPadding (0,0,0,15);
			img6.SetPadding (-1,0,0,15);
			int x=0;
			int y=5;

			int x1,y1;
			x1= (x)+(width/2);
			y1 = (2*y)+((height-100)/3);
			grid1.SetX(x); grid1.SetY(y);
			grid2.SetX(x1); grid2.SetY(y);
			grid3.SetX(x); grid3.SetY(y1);
			grid4.SetX(x1); grid4.SetY(y1);
			grid5.SetX(x); grid5.SetY((2*y1));
			grid6.SetX(x1); grid6.SetY((2*y1));

			gridLayout.AddView(grid1);
			gridLayout.AddView(grid2);
			gridLayout.AddView(grid3);
			gridLayout.AddView(grid4);
			gridLayout.AddView(grid5);
			gridLayout.AddView(grid6);

			FrameLayout ContentFrame = new FrameLayout (context);
			ContentFrame.LayoutParameters = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, height-75);
			ContentFrame.SetBackgroundColor (Color.White);
			ContentFrame.AddView (gridLayout);
			gridLayout.SetBackgroundColor (Color.White);
			linear2.AddView (ContentFrame);



			LinearLayout contentLayout= new LinearLayout(context);

			RoundedImageView imgvw=new RoundedImageView(context,120,120);
			imgvw.SetPadding(0,10,0,10);
			imgvw.SetImageResource(Resource.Drawable.user);
			LinearLayout.LayoutParams layparams8 = new LinearLayout.LayoutParams(120, 120);
			layparams8.Gravity = GravityFlags.Center;
			imgvw.LayoutParameters=new ViewGroup.LayoutParams(120, 120);

			TextView text = new TextView(context);
			text.Text="James Pollock";
			text.Gravity=GravityFlags.Center;
			text.TextSize=17;
			text.SetTextColor(Color.White);
			text.SetPadding (0,20,0,0);
			text.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			LinearLayout headerLayout=new LinearLayout(context);
			headerLayout.Orientation=Orientation.Vertical;
			headerLayout.SetBackgroundColor(Color.Rgb(47,173,227));
			headerLayout.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, 200);
			headerLayout.SetGravity (GravityFlags.Center);
			headerLayout.AddView(imgvw,layparams8);
			headerLayout.AddView(text);
			LinearLayout.LayoutParams layparams2 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent, (int) (height * 0.15));
			layparams2.Gravity = GravityFlags.Center;
			contentLayout.AddView(headerLayout);
			LinearLayout.LayoutParams layparams5 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MatchParent,  (2));

			contentLayout.AddView(new SeparatorView(context,width){separatorColor=Color.LightGray},layparams5);
			contentLayout.SetBackgroundColor (Color.White);
			linear2.SetBackgroundColor(Color.White);

			slideDrawer = new Com.Syncfusion.Navigationdrawer.SfNavigationDrawer(context);
			slideDrawer.ContentView=linear2;
			slideDrawer.DrawerWidth = (float)(width * 0.60);
			slideDrawer.DrawerHeight = (float)(height * 0.60);
			slideDrawer.Transition=Transition.SlideOnTop;
			slideDrawer.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
			listView = new ListView(context);
			listView.VerticalScrollBarEnabled = true;
			btn.Click+= (object sender, EventArgs e) => {
				slideDrawer.ToggleDrawer();
			};

			List<String> list = new List<String>();

			list.Add("Home");
			list.Add("Profile");
			list.Add("Inbox");
			list.Add("Outbox");
			list.Add("Sent Items");
			list.Add("Trash");



			ArrayAdapter<String> arrayAdapter =new ArrayAdapter<String>(context, Android.Resource.Layout.SimpleListItem1,list);
			listView.SetAdapter(arrayAdapter);
			listView.SetBackgroundColor(Color.White);
			listView.LayoutParameters = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent,ViewGroup.LayoutParams.MatchParent);
			contentLayout.AddView(listView);

			contentLayout.Orientation=Orientation.Vertical;

			FrameLayout frame = new FrameLayout (context);
			frame.LayoutParameters = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
			frame.SetBackgroundColor (Color.White);
			frame.AddView (contentLayout);
			slideDrawer.DrawerContentView=frame;



			/**
			 * profile content
			 * */

			LinearLayout profilelayout = new LinearLayout(context);
			profilelayout.LayoutParameters = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
			profilelayout.Orientation = Orientation.Vertical;
			LinearLayout linearLayout2 = new LinearLayout(context);
			linearLayout2.SetGravity(GravityFlags.Center);
			linearLayout2.SetPadding(0,30,0,30);
			linearLayout2.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			RoundedImageView rddimgvw=new RoundedImageView(context,  150,  150);
			rddimgvw.LayoutParameters=new ViewGroup.LayoutParams(  150,  150);
			rddimgvw.SetImageResource(Resource.Drawable.user);
			LinearLayout txtlayout=new LinearLayout(context);
			txtlayout.SetPadding(40,0,0,0);
			txtlayout.Orientation=Orientation.Vertical;
			TextView txtvw=new TextView(context);
			txtvw.TextSize=20;
			txtvw.Text="JamesPollock";
			txtvw.SetTextColor (Color.Black);

			TextView txtvw1=new TextView(context);
			txtvw1.Text="Age 30";
			txtvw1.TextSize=13;			
			txtvw1.SetTextColor (Color.Black);
			txtlayout.AddView(txtvw);
			txtlayout.AddView(txtvw1);
			linearLayout2.AddView(rddimgvw);
			linearLayout2.AddView(txtlayout);
			linearLayout2.SetBackgroundColor(Color.White);
			profilelayout.AddView(linearLayout2);
			//int Width=context.getResources().getDisplayMetrics().widthPixels;
			profilelayout.Orientation=Orientation.Vertical;
			FrameLayout.LayoutParams separatorparams=new FrameLayout.LayoutParams(width,2,GravityFlags.Center);
			SeparatorView separatorView = new SeparatorView(context,width);
			separatorView.separatorColor = Color.LightGray;
			//separatorView.Invalidate ();
			separatorView.SetPadding(20,0,20,20);

			profilelayout.AddView(separatorView, separatorparams);

			TextView textView60 =  new TextView(context);
			textView60.TextSize=16;
			textView60.SetPadding(20,0,20,0);
			textView60.SetBackgroundColor(Color.White);
			textView60.Text="\n" +
				"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.\n" +
				"\n" + "\n" + "when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters.\n" +
				"\n" + "\n" + "James Pollock";
			//textView.setHorizontallyScrolling(false);
			profilelayout.AddView(textView60);
			profilelayout.SetBackgroundColor (Color.White);


			/**
         * InBox Layout
         */
			LinearLayout inboxLayout=new LinearLayout(context);
			inboxLayout.LayoutParameters=new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent);
			inboxLayout.SetBackgroundColor (Color.White);
			inboxLayout.Orientation=Orientation.Vertical;
			LinearLayout mail1=new LinearLayout(context);
			TextView textView8 = new TextView(context);
			textView8.Text="John";
			textView8.TextSize=18;
			TextView textView9 = new TextView(context);
			textView9.Text="Update on Timeline";
			textView9.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView9.TextSize=16;
			TextView textView10 = new TextView(context);
			textView10.Text="Hi John, See you at 10AM";

			SeparatorView separate4 = new SeparatorView(context, width * 2);
			separate4.separatorColor = Color.LightGray;
			separate4.LayoutParameters=new ViewGroup.LayoutParams(width * 2, 3);

			LinearLayout.LayoutParams layoutParams5 = new LinearLayout.LayoutParams(width * 2, 3);
			layoutParams5.SetMargins(0, 10, 15, 0);
			textView10.TextSize=13;
			mail1.AddView(textView8);
			mail1.AddView(textView10);

			LinearLayout mail2=new LinearLayout(context);
			TextView textView11 = new TextView(context);
			textView11.Text="Caster";
			textView11.TextSize=18;
			TextView textView12 = new TextView(context);
			textView12.Text="Update on Timeline";
			textView12.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView12.TextSize=16;
			TextView textView13 = new TextView(context);
			textView13.Text="Hi Caster, See you at 11AM";
			//textView13.setTextColor(Color.parseColor("#1CAEE4"));
			textView13.TextSize=13;
			mail2.AddView(textView11);
			//mail2.addView(textView12);
			mail2.AddView(textView13);

			SeparatorView separate1 = new SeparatorView(context, width * 2);
			separate1.separatorColor = Color.LightGray;
			separate1.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));




			LinearLayout mail3=new LinearLayout(context);
			TextView textView14 = new TextView(context);
			textView14.Text="Joey";
			textView14.TextSize=18;
			TextView textView15 = new TextView(context);
			textView15.Text="Update on Timeline";
			textView15.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView15.TextSize=16;
			TextView textView16 = new TextView(context);
			textView16.Text="Hi Joey, See you at 1PM";
			textView16.TextSize=13;
			mail3.AddView(textView14);
			mail3.AddView(textView16);

			SeparatorView separate5 = new SeparatorView(context, width * 2);
			separate5.separatorColor = Color.LightGray;
			separate5.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			LinearLayout mail4=new LinearLayout(context);
			TextView textView17 = new TextView(context);
			textView17.Text="Xavier";
			textView17.TextSize=18;
			TextView textView18 = new TextView(context);
			textView18.Text="Update on Timeline";
			textView18.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView18.TextSize=16;
			TextView textView19 = new TextView(context);
			textView19.Text="Hi Xavier, See you at 2PM";
			textView19.TextSize=13;
			mail4.AddView(textView17);
			mail4.AddView(textView19);

			SeparatorView separate3 = new SeparatorView(context, width * 2);
			separate3.separatorColor = Color.LightGray;
			separate3.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			LinearLayout mail9=new LinearLayout(context);
			TextView textView33 = new TextView(context);
			textView33.Text="Gonzalez";
			textView33.TextSize=18;
			TextView textView34 = new TextView(context);
			textView34.Text="Update on Timeline";
			textView34.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView34.TextSize=16;
			TextView textView35 = new TextView(context);
			textView35.Text="Hi Gonzalez, See you at 3PM";
			textView35.TextSize=13;
			mail9.AddView(textView33);
			//mail4.addView(textView18);
			mail9.AddView(textView35);

			SeparatorView separate7 = new SeparatorView(context, width * 2);
			separate7.separatorColor = Color.LightGray;
			separate7.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			LinearLayout mail10=new LinearLayout(context);
			TextView textView36 = new TextView(context);
			textView36.Text="Rodriguez";
			textView36.TextSize=18;
			TextView textView37 = new TextView(context);
			textView37.Text="Update on Timeline";
			textView37.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView37.TextSize=16;
			TextView textView38 = new TextView(context);
			textView38.Text="Hi Rodriguez, See you at 4PM";
			textView38.TextSize=13;
			mail10.AddView(textView36);
			mail10.AddView(textView38);

			SeparatorView separate10 = new SeparatorView(context, width * 2);
			separate10.separatorColor = Color.LightGray;
			separate10.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			LinearLayout mail11=new LinearLayout(context);
			TextView textView39 = new TextView(context);
			textView39.Text="Ruben";
			textView39.TextSize=18;
			TextView textView40 = new TextView(context);
			textView40.Text="Update on Timeline";
			textView40.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView40.TextSize=16;
			TextView textView41 = new TextView(context);
			textView41.Text="Hi Ruben, See you at 6PM";
			textView41.TextSize=13;
			mail11.AddView(textView39);
			mail11.AddView(textView41);

			SeparatorView separate11 = new SeparatorView(context, width * 2);
			separate11.separatorColor = Color.LightGray;
			separate11.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail1.Orientation=Orientation.Vertical;
			mail2.Orientation=Orientation.Vertical;
			mail3.Orientation=Orientation.Vertical;
			mail4.Orientation=Orientation.Vertical;
			mail9.Orientation=Orientation.Vertical;
			mail10.Orientation=Orientation.Vertical;
			mail11.Orientation=Orientation.Vertical;

			mail1.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail1.SetPadding(20,10,10,5);
			mail2.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail2.SetPadding(20,10,10,5);
			mail3.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail3.SetPadding(20,10,10,5);
			mail4.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail4.SetPadding(20,10,10,5);
			mail9.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail9.SetPadding(20,10,10,5);
			mail10.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail10.SetPadding(20,10,10,5);
			mail11.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail11.SetPadding(20,10,10,5);

			inboxLayout.SetPadding(20,0,20,20);
			inboxLayout.AddView(mail1);
			inboxLayout.AddView(separate4,layoutParams5);
			inboxLayout.AddView(mail2);
			inboxLayout.AddView(separate1,layoutParams5);
			inboxLayout.AddView(mail3);
			inboxLayout.AddView(separate5,layoutParams5);
			inboxLayout.AddView(mail4);
			inboxLayout.AddView(separate3,layoutParams5);
			inboxLayout.AddView(mail9);
			inboxLayout.AddView(separate7,layoutParams5);
			inboxLayout.AddView(mail10);
			inboxLayout.AddView(separate11,layoutParams5);
			inboxLayout.AddView(mail11);
			inboxLayout.AddView(separate10,layoutParams5);

			img2.Click+= (object sender, EventArgs e) => {

				ContentFrame.RemoveAllViews();
				inboxLayout.RemoveAllViews();
				inboxLayout.SetPadding(20,0,20,20);
				inboxLayout.AddView(mail1);
				inboxLayout.AddView(separate4,layoutParams5);
				inboxLayout.AddView(mail2);
				inboxLayout.AddView(separate1,layoutParams5);
				inboxLayout.AddView(mail3);
				inboxLayout.AddView(separate5,layoutParams5);
				inboxLayout.AddView(mail4);
				inboxLayout.AddView(separate3,layoutParams5);
				inboxLayout.AddView(mail9);
				inboxLayout.AddView(separate7,layoutParams5);
				inboxLayout.AddView(mail10);
				inboxLayout.AddView(separate11,layoutParams5);
				inboxLayout.AddView(mail11);
				inboxLayout.AddView(separate10,layoutParams5);
				ContentFrame.AddView(inboxLayout);
				textView.Text="Inbox";

			};

			/**
         * Outbox content
         */


			LinearLayout outboxlayout=new LinearLayout(context);
			outboxlayout.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent));
			outboxlayout.SetBackgroundColor(Color.White);
			outboxlayout.Orientation=(Orientation.Vertical);
			LinearLayout mail5=new LinearLayout(context);
			TextView textView20 = new TextView(context);
			textView20.Text="Ruben";
			textView20.TextSize=20;
			TextView textView21 = new TextView(context);
			textView21.Text="Update on Timeline";
			textView21.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView21.TextSize=16;
			TextView textView22 = new TextView(context);
			textView22.Text="Hi Ruben, see you at 6PM";

			SeparatorView separate6 = new SeparatorView(context, width * 2);
			separate6.separatorColor = Color.LightGray;
			separate6.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			textView22.TextSize=13;
			mail5.AddView(textView20);
			mail5.AddView(textView22);

			LinearLayout mail6=new LinearLayout(context);
			TextView textView23 = new TextView(context);
			textView23.Text="Rodriguez";
			textView23.TextSize=20;
			TextView textView24 = new TextView(context);
			textView24.Text="Update on Timeline";
			textView24.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView24.TextSize=16;
			TextView textView25 = new TextView(context);
			textView25.Text="Hi Rodriguez, see you at 4PM";
			textView25.TextSize=13;
			mail6.AddView(textView23);
			mail6.AddView(textView25);

			LinearLayout mail12=new LinearLayout(context);
			TextView textView42 = new TextView(context);
			textView42.Text="Gonzalez";
			textView42.TextSize=20;
			TextView textView43 = new TextView(context);
			textView43.Text="Update on Timeline";
			textView43.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView43.TextSize=16;
			TextView textView44 = new TextView(context);
			textView44.Text="Hi Gonzalez, see you at 3PM";
			mail12.AddView(textView42);
			//mail12.addView(textView43);
			mail12.AddView(textView44);

			SeparatorView separate14 = new SeparatorView(context, width * 2);
			separate14.separatorColor = Color.LightGray;
			separate14.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail12.Orientation=Orientation.Vertical;
			mail12.Orientation=(Orientation.Vertical);
			mail5.Orientation=Orientation.Vertical;
			mail6.Orientation=Orientation.Vertical;

			LinearLayout mail13=new LinearLayout(context);
			TextView textView45 = new TextView(context);
			textView45.Text="Xavier";
			textView45.TextSize=20;
			TextView textView46 = new TextView(context);
			textView46.Text="Update on Timeline";
			textView46.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView46.TextSize=16;
			TextView textView47 = new TextView(context);
			textView47.Text="Hi Xavier, see you at 2PM";

			SeparatorView separate15 = new SeparatorView(context, width * 2);
			separate15.separatorColor = Color.LightGray;
			separate15.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail13.AddView(textView45);
			mail13.AddView(textView47);

			mail13.Orientation=(Orientation.Vertical);
			mail13.Orientation=(Orientation.Vertical);

			LinearLayout mail14=new LinearLayout(context);
			TextView textView48 = new TextView(context);
			textView48.Text="Joey";
			textView48.TextSize=20;
			TextView textView49 = new TextView(context);
			textView49.Text="Update on Timeline";
			textView49.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView49.TextSize=16;
			TextView textView50 = new TextView(context);
			textView50.Text="Hi Joey, see you at 1PM";

			SeparatorView separate16 = new SeparatorView(context, width * 2);
			separate16.separatorColor = Color.LightGray;
			separate16.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail14.AddView(textView48);
			//mail12.addView(textView43);
			mail14.AddView(textView50);

			mail14.Orientation=(Orientation.Vertical);
			mail14.Orientation=(Orientation.Vertical);

			LinearLayout mail15=new LinearLayout(context);
			TextView textView51 = new TextView(context);
			textView51.Text="Joey";
			textView51.TextSize=20;
			TextView textView52 = new TextView(context);
			textView52.Text="Update on Timeline";
			textView52.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView52.TextSize=16;
			TextView textView53 = new TextView(context);
			textView53.Text="Hi Joey, see you at 1PM";

			SeparatorView separate17 = new SeparatorView(context, width * 2);
			separate17.separatorColor = Color.LightGray;
			separate17.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail15.AddView(textView51);
			mail15.AddView(textView53);

			mail15.Orientation=(Orientation.Vertical);
			mail15.Orientation=(Orientation.Vertical);


			LinearLayout mail16=new LinearLayout(context);
			TextView textView54 = new TextView(context);
			textView54.Text=("Caster");
			textView54.TextSize=(20);
			TextView textView55 = new TextView(context);
			textView55.Text=("Update on Timeline");
			textView55.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView55.TextSize=(16);
			TextView textView56 = new TextView(context);
			textView56.Text=("Hi Caster, see you at 11PM");

			SeparatorView separate18 = new SeparatorView(context, width * 2);
			separate18.separatorColor = Color.LightGray;
			separate18.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail16.AddView(textView54);
			mail16.AddView(textView56);

			mail16.Orientation=(Orientation.Vertical);
			mail16.Orientation=(Orientation.Vertical);

			LinearLayout mail17=new LinearLayout(context);
			TextView textView57 = new TextView(context);
			textView57.Text="john";
			textView57.TextSize=20;
			TextView textView58 = new TextView(context);
			textView58.Text=("Update on Timeline");
			textView58.SetTextColor(Color.ParseColor("#1CAEE4"));
			textView58.TextSize=(16);
			TextView textView59 = new TextView(context);
			textView59.Text=("Hi John, see you at 10AM");

			SeparatorView separate19 = new SeparatorView(context, width * 2);
			separate19.separatorColor = Color.LightGray;
			separate19.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));

			mail17.AddView(textView57);
			mail17.AddView(textView59);

			mail17.Orientation=(Orientation.Vertical);
			mail17.Orientation=(Orientation.Vertical);

			mail6.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail6.SetPadding(20, 10, 10, 10);
			mail5.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail5.SetPadding(20,10,10,5);
			mail12.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail12.SetPadding(20,10,10,5);
			mail13.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail13.SetPadding(20,10,10,5);
			mail14.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail14.SetPadding(20,10,10,5);
			mail15.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail15.SetPadding(20,10,10,5);
			mail16.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail16.SetPadding(20,10,10,5);
			mail17.LayoutParameters=(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent));
			mail17.SetPadding(20,10,10,5);

			SeparatorView separate13 = new SeparatorView(context, width * 2);
			separate13.separatorColor = Color.LightGray;
			separate13.LayoutParameters=(new ViewGroup.LayoutParams(width * 2, 3));




			outboxlayout.SetPadding(20, 0, 20, 20);
			outboxlayout.AddView(mail5);
			outboxlayout.AddView(separate13, layoutParams5);
			outboxlayout.AddView(mail6);
			outboxlayout.AddView(separate6, layoutParams5);
			outboxlayout.AddView(mail12);
			outboxlayout.AddView(separate14, layoutParams5);
			outboxlayout.AddView(mail13);
			outboxlayout.AddView(separate15, layoutParams5);
			outboxlayout.AddView(mail15);
			outboxlayout.AddView(separate17, layoutParams5);
			outboxlayout.AddView(mail16);
			outboxlayout.AddView(separate18, layoutParams5);
			outboxlayout.AddView(mail17);
			outboxlayout.AddView(separate19, layoutParams5);

			img3.Click+= (object sender, EventArgs e) => {




				ContentFrame.RemoveAllViews();
				outboxlayout.RemoveAllViews();
				outboxlayout.SetPadding(20, 0, 20, 20);
				outboxlayout.AddView(mail5);
				outboxlayout.AddView(separate13, layoutParams5);
				outboxlayout.AddView(mail6);
				outboxlayout.AddView(separate6, layoutParams5);
				outboxlayout.AddView(mail12);
				outboxlayout.AddView(separate14, layoutParams5);
				outboxlayout.AddView(mail13);
				outboxlayout.AddView(separate15, layoutParams5);
				outboxlayout.AddView(mail15);
				outboxlayout.AddView(separate17, layoutParams5);
				outboxlayout.AddView(mail16);
				outboxlayout.AddView(separate18, layoutParams5);
				outboxlayout.AddView(mail17);
				outboxlayout.AddView(separate19, layoutParams5);
				ContentFrame.AddView(outboxlayout);
				textView.Text="OutBox";
			};



			listView.ItemClick+= (object sender, AdapterView.ItemClickEventArgs e) => {
				String selitem= arrayAdapter.GetItem(e.Position);
				if(selitem.Equals("Home")){
					ContentFrame.RemoveAllViews();
					ContentFrame.AddView(gridLayout);
					textView.Text="Home";

				}
				if(selitem.Equals("Profile")){
					ContentFrame.RemoveAllViews();
					ContentFrame.AddView(profilelayout);
					textView.Text="Profile";

				}
				if(selitem.Equals("Inbox")){
					ContentFrame.RemoveAllViews();
					inboxLayout.RemoveAllViews();
					inboxLayout.SetPadding(20,0,20,20);
					inboxLayout.AddView(mail1);
					inboxLayout.AddView(separate4,layoutParams5);
					inboxLayout.AddView(mail2);
					inboxLayout.AddView(separate1,layoutParams5);
					inboxLayout.AddView(mail3);
					inboxLayout.AddView(separate5,layoutParams5);
					inboxLayout.AddView(mail4);
					inboxLayout.AddView(separate3,layoutParams5);
					inboxLayout.AddView(mail9);
					inboxLayout.AddView(separate7,layoutParams5);
					inboxLayout.AddView(mail10);
					inboxLayout.AddView(separate11,layoutParams5);
					inboxLayout.AddView(mail11);
					inboxLayout.AddView(separate10,layoutParams5);
					ContentFrame.AddView(inboxLayout);
					textView.Text="Inbox";
				}
				if(selitem.Equals("Outbox")){

					ContentFrame.RemoveAllViews();
					outboxlayout.RemoveAllViews();
					outboxlayout.SetPadding(20, 0, 20, 20);
					outboxlayout.AddView(mail5);
					outboxlayout.AddView(separate13, layoutParams5);
					outboxlayout.AddView(mail6);
					outboxlayout.AddView(separate6, layoutParams5);
					outboxlayout.AddView(mail12);
					outboxlayout.AddView(separate14, layoutParams5);
					outboxlayout.AddView(mail13);
					outboxlayout.AddView(separate15, layoutParams5);
					outboxlayout.AddView(mail15);
					outboxlayout.AddView(separate17, layoutParams5);
					outboxlayout.AddView(mail16);
					outboxlayout.AddView(separate18, layoutParams5);
					outboxlayout.AddView(mail17);
					outboxlayout.AddView(separate19, layoutParams5);
					ContentFrame.AddView(outboxlayout);
					textView.Text="OutBox";
				}
				if(selitem.Equals("Sent Items")){
					ContentFrame.RemoveAllViews();
					inboxLayout.RemoveAllViews();
					inboxLayout.SetPadding(20,0,20,20);

					inboxLayout.AddView(mail10);
					inboxLayout.AddView(separate1,layoutParams5);
					inboxLayout.AddView(mail9);
					inboxLayout.AddView(separate5,layoutParams5);
					inboxLayout.AddView(mail4);
					inboxLayout.AddView(separate3,layoutParams5);
					inboxLayout.AddView(mail3);
					inboxLayout.AddView(separate10,layoutParams5);
					inboxLayout.AddView(mail11);
					inboxLayout.AddView(separate4,layoutParams5);
					inboxLayout.AddView(mail1);
					inboxLayout.AddView(separate7,layoutParams5);
					inboxLayout.AddView(mail2);
					inboxLayout.AddView(separate11,layoutParams5);
					ContentFrame.AddView(inboxLayout);
					textView.Text="Sent Items";
				}
				if(selitem.Equals("Trash")){
					ContentFrame.RemoveAllViews();
					outboxlayout.RemoveAllViews();
					outboxlayout.SetPadding(20, 0, 20, 20);
					outboxlayout.AddView(mail13);
					outboxlayout.AddView(separate15, layoutParams5);
					outboxlayout.AddView(mail5);
					outboxlayout.AddView(separate13, layoutParams5);
					outboxlayout.AddView(mail12);
					outboxlayout.AddView(separate14, layoutParams5);
					outboxlayout.AddView(mail15);
					outboxlayout.AddView(separate17, layoutParams5);
					outboxlayout.AddView(mail17);
					outboxlayout.AddView(separate19, layoutParams5);
					outboxlayout.AddView(mail16);
					outboxlayout.AddView(separate18, layoutParams5);
					outboxlayout.AddView(mail6);
					outboxlayout.AddView(separate6, layoutParams5);
					ContentFrame.AddView(outboxlayout);
					textView.Text="Trash";
				}
				slideDrawer.ToggleDrawer();


			};


			img1.Click+= (object sender, EventArgs e) => {
				ContentFrame.RemoveAllViews();
				ContentFrame.AddView(profilelayout);
				textView.Text="Profile";
			};





			img4.Click+= (object sender, EventArgs e) => {
				ContentFrame.RemoveAllViews();
				inboxLayout.RemoveAllViews();
				inboxLayout.SetPadding(20,0,20,20);

				inboxLayout.AddView(mail10);
				inboxLayout.AddView(separate1,layoutParams5);
				inboxLayout.AddView(mail9);
				inboxLayout.AddView(separate5,layoutParams5);
				inboxLayout.AddView(mail4);
				inboxLayout.AddView(separate3,layoutParams5);
				inboxLayout.AddView(mail3);
				inboxLayout.AddView(separate10,layoutParams5);
				inboxLayout.AddView(mail11);
				inboxLayout.AddView(separate4,layoutParams5);
				inboxLayout.AddView(mail1);
				inboxLayout.AddView(separate7,layoutParams5);
				inboxLayout.AddView(mail2);
				inboxLayout.AddView(separate11,layoutParams5);
				ContentFrame.AddView(inboxLayout);
				textView.Text="Sent Items";
			};
			img5.Click+= (object sender, EventArgs e) => {
				ContentFrame.RemoveAllViews();
				outboxlayout.RemoveAllViews();
				outboxlayout.SetPadding(20, 0, 20, 20);
				outboxlayout.AddView(mail13);
				outboxlayout.AddView(separate15, layoutParams5);
				outboxlayout.AddView(mail5);
				outboxlayout.AddView(separate13, layoutParams5);
				outboxlayout.AddView(mail12);
				outboxlayout.AddView(separate14, layoutParams5);
				outboxlayout.AddView(mail15);
				outboxlayout.AddView(separate17, layoutParams5);
				outboxlayout.AddView(mail17);
				outboxlayout.AddView(separate19, layoutParams5);
				outboxlayout.AddView(mail16);
				outboxlayout.AddView(separate18, layoutParams5);
				outboxlayout.AddView(mail6);
				outboxlayout.AddView(separate6, layoutParams5);
				ContentFrame.AddView(outboxlayout);
				textView.Text="Trash";
			};


			return slideDrawer;
		}