Ejemplo n.º 1
0
        //Drag Events
        public void BuildDialog()
        {
            //Dialog
            DurationDialog = new Dialog(this);
            DurationDialog.SetCancelable(false);
            DurationDialog.SetContentView(Resource.Layout.MyDialog);
            LinearLayout DurationDialogLayout = DurationDialog.FindViewById <LinearLayout>(Resource.Id.AbcDEF);

            DurationDialogLayout.Orientation = Orientation.Vertical;
            DurationDialogLayout.SetGravity(GravityFlags.Center);
            //Text view
            TextView DurationDialogTV = new TextView(this);

            DurationDialogTV.LayoutParameters = vlp;
            DurationDialogTV.Text             = "Duration: ";
            DurationDialogTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            DurationDialogTV.TextSize         = 30;
            //Edit text
            DurationDialogET = new TextInputEditText(this);
            DurationDialogET.SetBackgroundResource(Resource.Drawable.MyBackground);
            DurationDialogET.Hint             = "Duration";
            DurationDialogET.LayoutParameters = vlp;
            DurationDialogET.TextSize         = 30;
            DurationDialogET.InputType        = InputTypes.ClassPhone;
            //Input Layout
            LinearLayout DialogInputLayout = new LinearLayout(this);

            DialogInputLayout.LayoutParameters = vOneTwentyParams;
            DialogInputLayout.Orientation      = Orientation.Horizontal;
            //addind to layout
            DialogInputLayout.AddView(DurationDialogTV);
            DialogInputLayout.AddView(DurationDialogET);
            //Linear Layout
            DurationDialogLayout.AddView(DialogInputLayout);
            //button
            MyButton DialogMyButton = new MyButton(this);

            DialogMyButton.LayoutParameters = vlp;
            DialogMyButton.Text             = "Add";
            DialogMyButton.TextSize         = 30;
            DialogMyButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            DialogMyButton.Click           += this.DialogMyButton_Click;
            DurationDialogLayout.AddView(DialogMyButton);
            DurationDialog.Show();
            MyStuff.showSoftKeyboard(this, DurationDialogET);
        }
Ejemplo n.º 2
0
        void BuildAddStudentScreen()
        {
            //Defining the parent layout
            OverAllAddStudentLayout             = (LinearLayout)FindViewById(Resource.Id.AddStudentl);
            OverAllAddStudentLayout.Orientation = Orientation.Vertical;
            OverAllAddStudentLayout.SetGravity(GravityFlags.CenterHorizontal);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the Label AddStudent Layout
            LabelAddStudentLayout = new LinearLayout(this);
            LabelAddStudentLayout.LayoutParameters = WrapContParams;
            LabelAddStudentLayout.Orientation      = Orientation.Vertical;
            LabelAddStudentLayout.SetGravity(Android.Views.GravityFlags.Center);
            //Defining the Label AddStudent TextView
            LabelAddStudentTV = new TextView(this);
            LabelAddStudentTV.LayoutParameters = WrapContParams;
            LabelAddStudentTV.Text             = "New Student";
            LabelAddStudentTV.TextSize         = 60;
            LabelAddStudentTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LabelAddStudentTV.SetTextColor(Android.Graphics.Color.DarkRed);
            LabelAddStudentLayout.AddView(LabelAddStudentTV);
            OverAllAddStudentLayout.AddView(LabelAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the Name AddStudent layout
            NameAddStudentLayout = new LinearLayout(this);
            NameAddStudentLayout.LayoutParameters = WrapContParams;
            NameAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining the Name AddStudent TextView
            NameAddStudentTV = new TextView(this);
            NameAddStudentTV.LayoutParameters = WrapContParams;
            NameAddStudentTV.Text             = "Name: ";
            NameAddStudentTV.TextSize         = 30;
            NameAddStudentTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Name AddStudent TextInputEditText
            TextInputLayout nameLayout = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            NameAddStudentET = new TextInputEditText(this);
            NameAddStudentET.SetBackgroundResource(Resource.Drawable.MyBackground);
            NameAddStudentET.LayoutParameters         = OneTwentyParams;
            NameAddStudentET.Hint                     = "Full Name";
            NameAddStudentET.TextSize                 = 30;
            NameAddStudentET.FirstBaselineToTopHeight = 10;
            //Adding views to layout
            NameAddStudentLayout.AddView(NameAddStudentTV);
            nameLayout.AddView(NameAddStudentET);
            NameAddStudentLayout.AddView(nameLayout);
            OverAllAddStudentLayout.AddView(NameAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining PhoneNum AddStudent Layout
            PhoneNumAddStudentLayout = new LinearLayout(this);
            PhoneNumAddStudentLayout.LayoutParameters = WrapContParams;
            PhoneNumAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining the PhoneNum AddStudent TextView
            PhoneNumAddStudentTV = new TextView(this);
            PhoneNumAddStudentTV.LayoutParameters = WrapContParams;
            PhoneNumAddStudentTV.Text             = "Phone # ";
            PhoneNumAddStudentTV.TextSize         = 30;
            PhoneNumAddStudentTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            PhoneNumAddStudentTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the PhoneNum AddStudent TextInputEditText
            TextInputLayout phone = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            PhoneNumAddStudentET = new TextInputEditText(this);
            PhoneNumAddStudentET.SetBackgroundResource(Resource.Drawable.MyBackground);
            PhoneNumAddStudentET.LayoutParameters = OneTwentyParams;
            PhoneNumAddStudentET.Text             = "05";
            PhoneNumAddStudentET.TextSize         = 30;
            PhoneNumAddStudentET.SetSingleLine();
            PhoneNumAddStudentET.InputType = InputTypes.ClassPhone;
            //Adding views to layout
            PhoneNumAddStudentLayout.AddView(PhoneNumAddStudentTV);
            phone.AddView(PhoneNumAddStudentET);
            PhoneNumAddStudentLayout.AddView(phone);
            OverAllAddStudentLayout.AddView(PhoneNumAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            // Defining Email AddStudentLayout
            EmailAddStudentLayout = new LinearLayout(this);
            EmailAddStudentLayout.LayoutParameters = WrapContParams;
            EmailAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining the Email AddStudent TextView
            EmailAddStudentTV = new TextView(this);
            EmailAddStudentTV.LayoutParameters = WrapContParams;
            EmailAddStudentTV.Text             = "Enter Email: ";
            EmailAddStudentTV.TextSize         = 30;
            EmailAddStudentTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            EmailAddStudentTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Email AddStudent TextInputEditText
            TextInputLayout Email = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            EmailAddStudentET = new TextInputEditText(this);
            EmailAddStudentET.SetBackgroundResource(Resource.Drawable.MyBackground);
            EmailAddStudentET.LayoutParameters = OneTwentyParams;
            EmailAddStudentET.Hint             = "Email";
            EmailAddStudentET.InputType        = InputTypes.TextVariationEmailAddress;
            EmailAddStudentET.TextSize         = 30;
            EmailAddStudentET.SetSingleLine();
            //Adding views to layout
            EmailAddStudentLayout.AddView(EmailAddStudentTV);
            Email.AddView(EmailAddStudentET);
            EmailAddStudentLayout.AddView(Email);
            OverAllAddStudentLayout.AddView(EmailAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining Parent1NameAddStudentLayout
            Parent1NameAddStudentLayout = new LinearLayout(this);
            Parent1NameAddStudentLayout.LayoutParameters = WrapContParams;
            Parent1NameAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining the Parent1Name AddStudent TextView
            Parent1NameAddStudentTV = new TextView(this);
            Parent1NameAddStudentTV.LayoutParameters = WrapContParams;
            Parent1NameAddStudentTV.Text             = "Parent1 Name: ";
            Parent1NameAddStudentTV.TextSize         = 30;
            Parent1NameAddStudentTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            Parent1NameAddStudentTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Parent1Name AddStudent TextInputEditText
            TextInputLayout p1 = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            Parent1NameAddStudentET = new TextInputEditText(this);
            Parent1NameAddStudentET.SetBackgroundResource(Resource.Drawable.MyBackground);
            Parent1NameAddStudentET.LayoutParameters = OneTwentyParams;
            Parent1NameAddStudentET.Hint             = "Parent1";
            Parent1NameAddStudentET.TextSize         = 30;
            //Adding views to layout
            Parent1NameAddStudentLayout.AddView(Parent1NameAddStudentTV);
            p1.AddView(Parent1NameAddStudentET);
            Parent1NameAddStudentLayout.AddView(p1);
            OverAllAddStudentLayout.AddView(Parent1NameAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining Parent2NameAddStudentLayout
            Parent2NameAddStudentLayout = new LinearLayout(this);
            Parent2NameAddStudentLayout.LayoutParameters = WrapContParams;
            Parent2NameAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining the Parent2Name AddStudent TextView
            Parent2NameAddStudentTV = new TextView(this);
            Parent2NameAddStudentTV.LayoutParameters = WrapContParams;
            Parent2NameAddStudentTV.Text             = "Parent2 Name: ";
            Parent2NameAddStudentTV.TextSize         = 30;
            Parent2NameAddStudentTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            Parent2NameAddStudentTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Parent2Name AddStudent TextInputEditText
            TextInputLayout p2 = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            Parent2NameAddStudentET = new TextInputEditText(this);
            Parent2NameAddStudentET.LayoutParameters = OneTwentyParams;
            Parent2NameAddStudentET.SetBackgroundResource(Resource.Drawable.MyBackground);
            Parent2NameAddStudentET.Hint     = "Parent2";
            Parent2NameAddStudentET.TextSize = 30;
            //Adding views to layout
            Parent2NameAddStudentLayout.AddView(Parent2NameAddStudentTV);
            p2.AddView(Parent2NameAddStudentET);
            Parent2NameAddStudentLayout.AddView(p2);
            OverAllAddStudentLayout.AddView(Parent2NameAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the AddStudent Explenation layout
            AddStudentExplenationLayout = new LinearLayout(this);
            AddStudentExplenationLayout.LayoutParameters = WrapContParams;
            AddStudentExplenationLayout.Orientation      = Orientation.Vertical;
            //Defining the Explenation AddStudent TextView
            AddStudentExplenationTV = new TextView(this);
            AddStudentExplenationTV.LayoutParameters = WrapContParams;
            AddStudentExplenationTV.Text             = "Student Notes: ";
            AddStudentExplenationTV.TextSize         = 30;
            AddStudentExplenationTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Adding views to layout
            AddStudentExplenationLayout.AddView(AddStudentExplenationTV);
            OverAllAddStudentLayout.AddView(AddStudentExplenationLayout);
            //Defining The AddStudent notes ET layout
            AddStudentExplenationETLayout = new LinearLayout(this);
            AddStudentExplenationETLayout.LayoutParameters = new LinearLayout.LayoutParams(1100, 400);
            AddStudentExplenationETLayout.Orientation      = Orientation.Vertical;
            AddStudentExplenationETLayout.SetBackgroundResource(Resource.Drawable.BlackOutLine);
            AddStudentExplenationETLayout.Click += this.AddStudentExplenationETLayout_Click;
            //Defining the Explenation AddStudent TextInputEditText
            AddStudentExplenationET = new TextInputEditText(this);
            AddStudentExplenationET.SetWidth(LinearLayout.LayoutParams.MatchParent);
            AddStudentExplenationET.Hint     = "Notes";
            AddStudentExplenationET.TextSize = 25;
            AddStudentExplenationET.SetTextIsSelectable(true);
            AddStudentExplenationET.InputType = InputTypes.TextFlagMultiLine;
            AddStudentExplenationET.Gravity   = GravityFlags.Top;
            AddStudentExplenationET.SetSingleLine(false);
            AddStudentExplenationET.SetBackgroundColor(Color.Transparent);
            //Adding viwes to overall layout
            AddStudentExplenationETLayout.AddView(AddStudentExplenationET);
            OverAllAddStudentLayout.AddView(AddStudentExplenationETLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Declare Spinner
            spin = new Spinner(this);
            spin.LayoutParameters = OneTwentyParams;
            spin.ItemSelected    += new EventHandler <AdapterView.ItemSelectedEventArgs>(spinner_ItemSelected);
            var adapter = new ArrayAdapter <String>(this, Android.Resource.Layout.SimpleSpinnerItem, groups);

            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            spin.Adapter = adapter;
            //Defining Spinner Layout
            SpinnerLayout = new LinearLayout(this);
            SpinnerLayout.LayoutParameters = WrapContParams;
            SpinnerLayout.Orientation      = Orientation.Horizontal;
            //Adding Views
            SpinnerLayout.AddView(spin);
            OverAllAddStudentLayout.AddView(SpinnerLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining AddStudent Button Layout
            ButtonAddStudentLayout = new LinearLayout(this);
            ButtonAddStudentLayout.LayoutParameters = WrapContParams;
            ButtonAddStudentLayout.Orientation      = Orientation.Horizontal;
            //Defining AddStudent Button
            AddStudentButton = new Button(this);
            AddStudentButton.LayoutParameters = WrapContParams;
            AddStudentButton.Text             = "Add Student";
            AddStudentButton.TextSize         = 40;
            AddStudentButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            AddStudentButton.Click           += this.AddStudentButton_Click;
            //Adding views
            ButtonAddStudentLayout.AddView(AddStudentButton);
            OverAllAddStudentLayout.AddView(ButtonAddStudentLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining AddStudent Button Layout
            ButtonSendToMainPageLayout = new LinearLayout(this);
            ButtonSendToMainPageLayout.LayoutParameters = WrapContParams;
            ButtonSendToMainPageLayout.Orientation      = Orientation.Horizontal;
            //Defining AddStudent Button
            SendBackToMainButton = new Button(this);
            SendBackToMainButton.LayoutParameters = WrapContParams;
            SendBackToMainButton.Text             = "Send Back To\nMain Page";
            SendBackToMainButton.TextSize         = 40;
            SendBackToMainButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            SendBackToMainButton.SetTextColor(Color.DarkRed);
            SendBackToMainButton.Click += this.SendBackToMainButton_Click;
            //Adding views
            ButtonSendToMainPageLayout.AddView(SendBackToMainButton);
            OverAllAddStudentLayout.AddView(ButtonSendToMainPageLayout);
        }
Ejemplo n.º 3
0
        public void BuildAddTrainingScreen()
        {
            //OverAll Layout
            AddTrainingOverAllLayout             = (LinearLayout)FindViewById(Resource.Id.AddTrainingL);
            AddTrainingOverAllLayout.Orientation = Orientation.Vertical;
            //-------------------------------------
            //Defining Label Layout
            AddTrainingLabelLayout = new LinearLayout(this);
            AddTrainingLabelLayout.LayoutParameters = WrapContParams;
            AddTrainingLabelLayout.Orientation      = Orientation.Vertical;
            AddTrainingLabelLayout.SetGravity(Android.Views.GravityFlags.Center);
            //Defining the Label AddTraining TextView
            AddTrainingLabelTV = new TextView(this);
            AddTrainingLabelTV.LayoutParameters = WrapContParams;
            AddTrainingLabelTV.Text             = "New Exercise";
            AddTrainingLabelTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            AddTrainingLabelTV.SetTextColor(Android.Graphics.Color.DarkRed);
            AddTrainingLabelTV.TextSize = 60;
            AddTrainingLabelLayout.AddView(AddTrainingLabelTV);
            AddTrainingOverAllLayout.AddView(AddTrainingLabelLayout);
            //Defining the AddTraining Name layout
            AddTrainingNameLayout = new LinearLayout(this);
            AddTrainingNameLayout.LayoutParameters = WrapContParams;
            AddTrainingNameLayout.Orientation      = Orientation.Horizontal;
            //Defining the Name AddTraining TextView
            AddTrainingNameTV = new TextView(this);
            AddTrainingNameTV.LayoutParameters = WrapContParams;
            AddTrainingNameTV.Text             = "Exercise Name: ";
            AddTrainingNameTV.TextSize         = 30;
            AddTrainingNameTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Name AddTraining TextInputEditText
            TextInputLayout nameLayout = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            AddTrainingNameET = new TextInputEditText(this);
            AddTrainingNameET.SetBackgroundResource(Resource.Drawable.MyBackground);
            AddTrainingNameET.LayoutParameters = OneTwentyParams;
            AddTrainingNameET.Hint             = "name";
            AddTrainingNameET.TextSize         = 30;
            //Adding views to layout
            AddTrainingNameLayout.AddView(AddTrainingNameTV);
            nameLayout.AddView(AddTrainingNameET);
            AddTrainingNameLayout.AddView(nameLayout);
            AddTrainingOverAllLayout.AddView(AddTrainingNameLayout);
            //----------------------------------------------------------------------------------
            //----------------------------------------------------------------------------------------
            //Defining the AddTraining Explenation layout
            AddTrainingExplenationLayout = new LinearLayout(this);
            AddTrainingExplenationLayout.LayoutParameters = WrapContParams;
            AddTrainingExplenationLayout.Orientation      = Orientation.Vertical;
            //Defining the Explenation AddTraining TextView
            AddTrainingExplenationTV = new TextView(this);
            AddTrainingExplenationTV.LayoutParameters = WrapContParams;
            AddTrainingExplenationTV.Text             = "Exercise Explenation: ";
            AddTrainingExplenationTV.TextSize         = 30;
            AddTrainingExplenationTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Adding views to layout
            AddTrainingExplenationLayout.AddView(AddTrainingExplenationTV);
            AddTrainingOverAllLayout.AddView(AddTrainingExplenationLayout);
            //Defining The AddTraining Explenation ET layout
            AddTrainingExplenationETLayout = new LinearLayout(this);
            AddTrainingExplenationETLayout.LayoutParameters = new LinearLayout.LayoutParams(1100, 800);
            AddTrainingExplenationETLayout.Orientation      = Orientation.Vertical;
            AddTrainingExplenationETLayout.SetBackgroundResource(Resource.Drawable.BlackOutLine);
            AddTrainingExplenationETLayout.Click += this.AddTrainingExplenationETLayout_Click;
            //Defining the Explenation AddTraining TextInputEditText
            AddTrainingExplenationET = new TextInputEditText(this);
            AddTrainingExplenationET.SetBackgroundResource(Resource.Drawable.MyBackground);
            AddTrainingExplenationET.SetWidth(LinearLayout.LayoutParams.MatchParent);
            AddTrainingExplenationET.Hint     = "Explenation";
            AddTrainingExplenationET.TextSize = 25;
            AddTrainingExplenationET.SetTextIsSelectable(true);
            AddTrainingExplenationET.InputType = InputTypes.TextFlagMultiLine;
            AddTrainingExplenationET.Gravity   = GravityFlags.Top;
            AddTrainingExplenationET.SetSingleLine(false);
            AddTrainingExplenationET.SetBackgroundColor(Color.Transparent);

            //Adding viwes to overall layout
            AddTrainingExplenationETLayout.AddView(AddTrainingExplenationET);
            AddTrainingOverAllLayout.AddView(AddTrainingExplenationETLayout);
            //---------------------------------------------------------------------------------------------------------
            //Defining AddTraining Button Layout
            ButtonAddTrainingLayout = new LinearLayout(this);
            ButtonAddTrainingLayout.LayoutParameters = WrapContParams;
            ButtonAddTrainingLayout.Orientation      = Orientation.Horizontal;
            //Defining AddTraining Button
            AddTrainingButton = new Button(this);
            AddTrainingButton.LayoutParameters = WrapContParams;
            AddTrainingButton.Text             = "Register";
            AddTrainingButton.TextSize         = 40;
            AddTrainingButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            AddTrainingButton.Click           += this.AddTrainingButton_Click;
            //Adding views
            ButtonAddTrainingLayout.AddView(AddTrainingButton);
            AddTrainingOverAllLayout.AddView(ButtonAddTrainingLayout);
            //Insert Image:

            /*
             *
             *
             *
             *
             *
             *
             *
             */
        }
Ejemplo n.º 4
0
        public void BuildScreen()
        {
            #region Title
            TitleLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            //
            TitleTV = new TextView(this)
            {
                Text             = "Add Meeting",
                TextSize         = 50,
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                LayoutParameters = WrapContParams,
            };
            TitleTV.SetTextColor(Color.DarkRed);
            TitleLayout.SetGravity(GravityFlags.CenterHorizontal);
            //
            TitleLayout.AddView(TitleTV);
            #endregion

            #region spinner
            spin = new Spinner(this);
            spin.LayoutParameters = OneTwentyParams;
            spin.ItemSelected    += new EventHandler <AdapterView.ItemSelectedEventArgs>(spinner_ItemSelected);
            var adapter = new ArrayAdapter <String>(this, Android.Resource.Layout.SimpleSpinnerItem, groups);
            adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            spin.Adapter = adapter;
            //Defining Spinner Layout
            SpinnerLayout = new LinearLayout(this);
            SpinnerLayout.LayoutParameters = WrapContParams;
            SpinnerLayout.Orientation      = Orientation.Horizontal;
            //Adding Views
            SpinnerLayout.AddView(spin);
            #endregion

            #region Location
            LocLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            LocTV = new TextView(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Location: ",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            LocTV.SetTextColor(Color.DarkRed);
            LocationET = new TextInputEditText(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Location",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            LocationET.SetBackgroundResource(Resource.Drawable.MyBackground);
            LocationET.Enabled = false;
            LocLayout.AddView(LocTV);
            LocLayout.AddView(LocationET);
            #endregion

            #region Time
            TimeLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            TimeBtn = new Button(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Time",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
                Enabled          = false,
            };
            TimeBtn.SetTextColor(Color.DarkRed);
            TimeLayout.AddView(TimeBtn);
            #endregion

            #region Age
            AgeLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            AgeTV = new TextView(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Age: ",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            AgeTV.SetTextColor(Color.DarkRed);
            AgeET = new TextInputEditText(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Age",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            AgeET.SetBackgroundResource(Resource.Drawable.MyBackground);
            AgeET.Enabled = false;
            AgeLayout.AddView(AgeTV);
            AgeLayout.AddView(AgeET);
            #endregion

            #region Radio
            CompLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            compRG             = new RadioGroup(this);
            compRG.Orientation = Orientation.Vertical;
            //Defining Competitive group Radio Button
            compRB = new RadioButton(this)
            {
                Text     = "Competetive",
                TextSize = 35,
                Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
            };
            compRB.SetTextColor(Color.DarkBlue);
            //Defining not Competetive group radio Button
            nonCompRB = new RadioButton(this)
            {
                Text     = "Not Competetive",
                TextSize = 35,
                Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
            };
            nonCompRB.SetTextColor(Color.DarkBlue);
            compRG.AddView(compRB);
            compRG.AddView(nonCompRB);
            CompLayout.AddView(compRG);
            compRB.Enabled    = false;
            nonCompRB.Enabled = false;
            #endregion

            #region Level
            LevelLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            LVLTV = new TextView(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Level: ",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            LVLTV.SetTextColor(Color.DarkRed);
            LVLET = new TextInputEditText(this)
            {
                LayoutParameters = OneTwentyParams,
                Text             = "Level",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
            };
            LVLET.SetBackgroundResource(Resource.Drawable.MyBackground);
            LVLET.Enabled = false;
            LevelLayout.AddView(LVLTV);
            LevelLayout.AddView(LVLET);
            #endregion

            #region Save Button
            SendLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            SendBtn = new Button(this)
            {
                Text             = "Save Meeting",
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                TextSize         = 35,
                LayoutParameters = OneTwentyParams,
            };
            SendBtn.Click += this.SendBtn_Click;
            SendLayout.AddView(SendBtn);
            #endregion

            #region Date
            DateLayout = new LinearLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };
            DateBtn = new Button(this)
            {
                Text             = "Date",
                TextSize         = 35,
                Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf"),
                LayoutParameters = OneTwentyParams,
            };
            DateBtn.SetTextColor(Color.DarkRed);
            DateBtn.Click += this.DateBtn_Click;
            DateLayout.AddView(DateBtn);
            #endregion

            #region Adding To Views
            OALayout = FindViewById <LinearLayout>(Resource.Id.AddMeetingL);
            OALayout.SetGravity(GravityFlags.CenterHorizontal);
            OALayout.AddView(TitleLayout);
            OALayout.AddView(SpinnerLayout);
            OALayout.AddView(LocLayout);
            OALayout.AddView(TimeLayout);
            OALayout.AddView(AgeLayout);
            OALayout.AddView(LevelLayout);
            OALayout.AddView(CompLayout);
            OALayout.AddView(DateLayout);
            OALayout.AddView(SendLayout);
            #endregion
        }
Ejemplo n.º 5
0
        void BuildAddGroupScreen()
        {
            //Defining the parent layout
            OverAllAddGroupLayout             = (LinearLayout)FindViewById(Resource.Id.AddGroupL);
            OverAllAddGroupLayout.Orientation = Orientation.Vertical;
            OverAllAddGroupLayout.SetGravity(Android.Views.GravityFlags.CenterHorizontal);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the Label AddGroup Layout
            LabelAddGroupLayout = new LinearLayout(this);
            LabelAddGroupLayout.LayoutParameters = WrapContParams;
            LabelAddGroupLayout.Orientation      = Orientation.Vertical;
            LabelAddGroupLayout.SetGravity(Android.Views.GravityFlags.Center);
            //Defining the Label AddGroup TextView
            LabelAddGroupTV = new TextView(this);
            LabelAddGroupTV.LayoutParameters = WrapContParams;
            LabelAddGroupTV.Text             = "Add Group:";
            LabelAddGroupTV.TextSize         = 80;
            LabelAddGroupTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LabelAddGroupTV.SetTextColor(Android.Graphics.Color.DarkRed);
            LabelAddGroupLayout.AddView(LabelAddGroupTV);
            OverAllAddGroupLayout.AddView(LabelAddGroupLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the Location AddGroup layout
            LocationAddGroupLayout = new LinearLayout(this);
            LocationAddGroupLayout.LayoutParameters = WrapContParams;
            LocationAddGroupLayout.Orientation      = Orientation.Horizontal;
            //Defining the Location AddGroup TextView
            LocationAddGroupTV = new TextView(this);
            LocationAddGroupTV.LayoutParameters = WrapContParams;
            LocationAddGroupTV.Text             = "Location: ";
            LocationAddGroupTV.TextSize         = 30;
            LocationAddGroupTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Location AddGroup TextInputEditText
            TextInputLayout Location = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            LocationAddGroupET = new TextInputEditText(this);
            LocationAddGroupET.SetBackgroundResource(Resource.Drawable.MyBackground);
            LocationAddGroupET.LayoutParameters = OneTwentyParams;
            LocationAddGroupET.Hint             = "Enter Adress";
            LocationAddGroupET.TextSize         = 30;
            LocationAddGroupET.InputType        = InputTypes.TextVariationPersonName;
            Location.AddView(LocationAddGroupET);
            //Adding views to layout
            LocationAddGroupLayout.AddView(LocationAddGroupTV);
            LocationAddGroupLayout.AddView(Location);
            OverAllAddGroupLayout.AddView(LocationAddGroupLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining Age AddGroup Layout
            AgeAddGroupLayout = new LinearLayout(this);
            AgeAddGroupLayout.LayoutParameters = WrapContParams;
            AgeAddGroupLayout.Orientation      = Orientation.Horizontal;
            //Defining the Age AddGroup TextView
            AgeAddGroupTV = new TextView(this);
            AgeAddGroupTV.LayoutParameters = WrapContParams;
            AgeAddGroupTV.Text             = "Age Range: ";
            AgeAddGroupTV.TextSize         = 30;
            AgeAddGroupTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            AgeAddGroupTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Age AddGroup TextInputEditText
            TextInputLayout Age = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            AgeAddGroupET = new TextInputEditText(this);
            AgeAddGroupET.SetBackgroundResource(Resource.Drawable.MyBackground);
            AgeAddGroupET.LayoutParameters = OneTwentyParams;
            AgeAddGroupET.Hint             = "Enter Age Range";
            AgeAddGroupET.TextSize         = 30;
            AgeAddGroupET.SetSingleLine();
            //Adding views to layout
            AgeAddGroupLayout.AddView(AgeAddGroupTV);
            Age.AddView(AgeAddGroupET);
            AgeAddGroupLayout.AddView(Age);
            OverAllAddGroupLayout.AddView(AgeAddGroupLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining GroupLevelAddGroupLayout
            GroupLevelAddGroupLayout = new LinearLayout(this);
            GroupLevelAddGroupLayout.LayoutParameters = WrapContParams;
            GroupLevelAddGroupLayout.Orientation      = Orientation.Horizontal;
            //Defining the GroupLevel AddGroup TextView
            GroupLevelAddGroupTV = new TextView(this);
            GroupLevelAddGroupTV.LayoutParameters = WrapContParams;
            GroupLevelAddGroupTV.Text             = "Group Level: ";
            GroupLevelAddGroupTV.TextSize         = 30;
            GroupLevelAddGroupTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            GroupLevelAddGroupTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the GroupLevel AddGroup TextInputEditText
            TextInputLayout LVL = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            GroupLevelAddGroupET = new TextInputEditText(this);
            GroupLevelAddGroupET.SetBackgroundResource(Resource.Drawable.MyBackground);
            GroupLevelAddGroupET.LayoutParameters = OneTwentyParams;
            GroupLevelAddGroupET.Hint             = "Enter Level";
            GroupLevelAddGroupET.TextSize         = 30;
            //Adding views to layout
            GroupLevelAddGroupLayout.AddView(GroupLevelAddGroupTV);
            LVL.AddView(GroupLevelAddGroupET);
            GroupLevelAddGroupLayout.AddView(LVL);
            OverAllAddGroupLayout.AddView(GroupLevelAddGroupLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining Radio Group Layout
            GroupLevelAddGroupLayout = new LinearLayout(this);
            GroupLevelAddGroupLayout.LayoutParameters = WrapContParams;
            GroupLevelAddGroupLayout.Orientation      = Orientation.Horizontal;
            //Defining RadioGroup
            IsGroupCompRGAddGroup             = new RadioGroup(this);
            IsGroupCompRGAddGroup.Orientation = Orientation.Horizontal;
            //Defining Competitive group Radio Button
            CompRBAddGroup          = new RadioButton(this);
            CompRBAddGroup.Text     = "Competetive";
            CompRBAddGroup.TextSize = 25;
            CompRBAddGroup.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            CompRBAddGroup.SetTextColor(Android.Graphics.Color.DarkBlue);
            CompRBAddGroup.Click += this.RadioButtonClick;
            //Defining not Competetive group radio Button
            NotCompRBAddGroup          = new RadioButton(this);
            NotCompRBAddGroup.Text     = "Not Competetive";
            NotCompRBAddGroup.TextSize = 25;
            NotCompRBAddGroup.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            NotCompRBAddGroup.SetTextColor(Android.Graphics.Color.DarkBlue);
            NotCompRBAddGroup.Click += this.RadioButtonClick;
            //Adding RB to RG
            IsGroupCompRGAddGroup.AddView(CompRBAddGroup);
            IsGroupCompRGAddGroup.AddView(NotCompRBAddGroup);
            //Adding view to overall layout
            OverAllAddGroupLayout.AddView(IsGroupCompRGAddGroup);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining AddGroup Button Layout
            ButtonAddGroupLayout = new LinearLayout(this);
            ButtonAddGroupLayout.LayoutParameters = WrapContParams;
            ButtonAddGroupLayout.Orientation      = Orientation.Horizontal;
            //Defining AddGroup Button
            AddGroupButton = new Button(this);
            AddGroupButton.LayoutParameters = WrapContParams;
            AddGroupButton.Text             = "Add Group";
            AddGroupButton.TextSize         = 40;
            AddGroupButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            AddGroupButton.Click           += this.AddGroupButton_Click;
            //Adding views
            ButtonAddGroupLayout.AddView(AddGroupButton);
            OverAllAddGroupLayout.AddView(ButtonAddGroupLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            BuildTimeAndDate();
        }
Ejemplo n.º 6
0
        private void BuildLoginScreen()
        {
            d = new Dialog(this);
            d.SetContentView(Resource.Layout.MyDialog);
            d.SetCancelable(true);
            d.SetTitle("LogIn");
            //OverallLayout
            dLayout = d.FindViewById <LinearLayout>(Resource.Id.AbcDEF);
            //Dialog Title Layout
            LinearLayout DialogTitleLayout = new LinearLayout(this);

            DialogTitleLayout.LayoutParameters = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MatchParent, 100);
            DialogTitleLayout.SetFadingEdgeLength(100);
            DialogTitleLayout.SetBackgroundColor(Color.RoyalBlue);
            //Dialog TitleTV
            TextView LoginDialogTitle = new TextView(this);

            LoginDialogTitle.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LoginDialogTitle.SetTextColor(Color.WhiteSmoke);
            LoginDialogTitle.TextSize = 35;
            LoginDialogTitle.VerticalFadingEdgeEnabled = true;
            LoginDialogTitle.SetFadingEdgeLength(30);
            LoginDialogTitle.Text = "Welcome Back";
            DialogTitleLayout.AddView(LoginDialogTitle);
            dLayout.AddView(DialogTitleLayout);
            //Defining MailLoginLayout
            MailLoginLayout1 = new LinearLayout(this);
            MailLoginLayout1.LayoutParameters = WrapContParams;
            MailLoginLayout1.Orientation      = Orientation.Horizontal;
            //Defining the Mail Login TextView
            MailLoginTV1 = new TextView(this);
            WrapContParams.SetMargins(20, 20, 5, 10);
            MailLoginTV1.LayoutParameters = WrapContParams;
            MailLoginTV1.Text             = "EMail: ";
            MailLoginTV1.TextSize         = 30;
            MailLoginTV1.SetForegroundGravity(Android.Views.GravityFlags.Center);
            MailLoginTV1.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Mail Login TextInputEditText
            TextInputLayout a = new TextInputLayout(this)
            {
                LayoutParameters = WrapContParams,
                Orientation      = Orientation.Horizontal,
            };

            MailLoginET1 = new TextInputEditText(this);
            MailLoginET.SetBackgroundResource(Resource.Drawable.MyBackground);
            OneTwentyParams.SetMargins(5, 20, 20, 10);
            MailLoginET1.LayoutParameters = OneTwentyParams;
            MailLoginET1.Hint             = "Enter EMail";
            MailLoginET1.InputType        = InputTypes.TextVariationEmailAddress;
            MailLoginET1.TextSize         = 30;
            MailLoginET1.SetSingleLine();
            MailLoginET1.SetBackgroundResource(Resource.Drawable.MyBackground);
            //Adding views to layout
            MailLoginLayout1.AddView(MailLoginTV1);
            a.AddView(MailLoginET1);
            MailLoginLayout1.AddView(a);
            dLayout.AddView(MailLoginLayout1);
            //
            //
            //Defining Login Button Layout
            ButtonLoginLayout1 = new LinearLayout(this);
            WrapContParams.SetMargins(20, 10, 20, 20);
            ButtonLoginLayout1.LayoutParameters = WrapContParams;
            ButtonLoginLayout1.Orientation      = Orientation.Horizontal;
            //Defining Login Button
            LoginButton1 = new Button(this);
            LoginButton1.LayoutParameters = WrapContParams;
            LoginButton1.Text             = "Log-In";
            LoginButton1.TextSize         = 40;
            LoginButton1.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LoginButton1.Click           += this.LoginButton1_Click;
            //Adding views
            ButtonLoginLayout1.AddView(LoginButton1);
            dLayout.AddView(ButtonLoginLayout1);

            //
            d.Show();
        }
Ejemplo n.º 7
0
        //https://github.com/egarim/XamarinAndroidSnippets/blob/master/XamarinAndroidRuntimePermissions
        //https://youtu.be/Uzpy3qdYXmE
        #endregion
        void BuildRegisterScreen()
        {
            //Defining the parent layout
            OverAllLoginLayout             = (LinearLayout)FindViewById(Resource.Id.LoginLinearLayout);
            OverAllLoginLayout.Orientation = Orientation.Vertical;
            OverAllLoginLayout.SetGravity(GravityFlags.CenterHorizontal);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the Label login Layout
            LabelLoginLayout = new LinearLayout(this);
            LabelLoginLayout.LayoutParameters = WrapContParams;
            LabelLoginLayout.Orientation      = Orientation.Vertical;
            LabelLoginLayout.SetGravity(Android.Views.GravityFlags.Center);
            //Defining the Label Login TextView
            LabelLoginTV = new TextView(this);
            LabelLoginTV.LayoutParameters = WrapContParams;
            LabelLoginTV.Text             = "Welcome!";
            LabelLoginTV.TextSize         = 80;
            LabelLoginTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LabelLoginTV.SetTextColor(Android.Graphics.Color.DarkRed);
            LabelLoginLayout.AddView(LabelLoginTV);
            //Defining the Second Label Login Textview
            LabelLoginTV1 = new TextView(this);
            LabelLoginTV1.LayoutParameters = WrapContParams;
            LabelLoginTV1.Text             = "Register";
            LabelLoginTV1.TextSize         = 40;
            LabelLoginTV1.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LabelLoginTV1.SetTextColor(Android.Graphics.Color.DarkRed);
            LabelLoginLayout.AddView(LabelLoginTV1);
            OverAllLoginLayout.AddView(LabelLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining the NameLogin layout
            NameLoginLayout = new LinearLayout(this);
            NameLoginLayout.LayoutParameters = WrapContParams;
            NameLoginLayout.Orientation      = Orientation.Horizontal;
            //Defining the Name Login TextView
            NameLoginTV = new TextView(this);
            NameLoginTV.LayoutParameters = WrapContParams;
            NameLoginTV.Text             = "Name: ";
            NameLoginTV.TextSize         = 30;
            NameLoginTV.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Name Login TextInputEditText
            TextInputLayout name = new TextInputLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };

            NameLoginET = new TextInputEditText(this);
            NameLoginET.SetBackgroundResource(Resource.Drawable.MyBackground);
            NameLoginET.LayoutParameters = ETparams;
            NameLoginET.Hint             = "Enter Name";
            NameLoginET.TextSize         = 30;
            NameLoginET.InputType        = InputTypes.TextVariationPersonName;
            NameLoginET.SetSingleLine();
            //Adding views to layout
            NameLoginLayout.AddView(NameLoginTV);
            name.AddView(NameLoginET);
            NameLoginLayout.AddView(name);
            OverAllLoginLayout.AddView(NameLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining MailLoginLayout
            MailLoginLayout = new LinearLayout(this);
            MailLoginLayout.LayoutParameters = WrapContParams;
            MailLoginLayout.Orientation      = Orientation.Horizontal;
            //Defining the Mail Login TextView
            MailLoginTV = new TextView(this);
            MailLoginTV.LayoutParameters = WrapContParams;
            MailLoginTV.Text             = "EMail: ";
            MailLoginTV.TextSize         = 30;
            MailLoginTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            MailLoginTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Mail Login TextInputEditText
            TextInputLayout mail = new TextInputLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };

            MailLoginET = new TextInputEditText(this);
            MailLoginET.LayoutParameters = ETparams;
            MailLoginET.SetBackgroundResource(Resource.Drawable.MyBackground);
            MailLoginET.Hint      = "Enter EMail";
            MailLoginET.InputType = InputTypes.TextVariationEmailAddress;
            MailLoginET.TextSize  = 30;
            MailLoginET.SetSingleLine();
            //Adding views to layout
            MailLoginLayout.AddView(MailLoginTV);
            mail.AddView(MailLoginET);
            MailLoginLayout.AddView(mail);
            OverAllLoginLayout.AddView(MailLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining SportLoginLayout
            SportLoginLayout = new LinearLayout(this);
            SportLoginLayout.LayoutParameters = WrapContParams;
            SportLoginLayout.Orientation      = Orientation.Horizontal;
            //Defining the Sport Login TextView
            SportLoginTV = new TextView(this);
            SportLoginTV.LayoutParameters = WrapContParams;
            SportLoginTV.Text             = "Sport: ";
            SportLoginTV.TextSize         = 30;
            SportLoginTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            SportLoginTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the Sport Login TextInputEditText
            TextInputLayout sport = new TextInputLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };

            SportLoginET = new TextInputEditText(this);
            SportLoginET.SetBackgroundResource(Resource.Drawable.MyBackground);
            SportLoginET.LayoutParameters = ETparams;
            SportLoginET.Hint             = "Sport";
            SportLoginET.TextSize         = 30;
            SportLoginET.InputType        = InputTypes.TextVariationShortMessage;
            SportLoginET.SetSingleLine();
            //Adding views to layout
            SportLoginLayout.AddView(SportLoginTV);
            sport.AddView(SportLoginET);
            SportLoginLayout.AddView(sport);
            OverAllLoginLayout.AddView(SportLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining PhoneNumberLoginLayout
            PhoneNumberLoginLayout = new LinearLayout(this);
            PhoneNumberLoginLayout.LayoutParameters = WrapContParams;
            PhoneNumberLoginLayout.Orientation      = Orientation.Horizontal;
            //Defining the PhoneNumber Login TextView
            PhoneNumberLoginTV = new TextView(this);
            PhoneNumberLoginTV.LayoutParameters = WrapContParams;
            PhoneNumberLoginTV.Text             = "PhoneNum: ";
            PhoneNumberLoginTV.TextSize         = 30;
            PhoneNumberLoginTV.SetForegroundGravity(Android.Views.GravityFlags.Center);
            PhoneNumberLoginTV.Typeface = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            //Defining the PhoneNumber Login TextInputEditText
            TextInputLayout phon = new TextInputLayout(this)
            {
                Orientation      = Orientation.Horizontal,
                LayoutParameters = WrapContParams,
            };

            PhoneNumberLoginET = new TextInputEditText(this);
            PhoneNumberLoginET.SetBackgroundResource(Resource.Drawable.MyBackground);
            PhoneNumberLoginET.LayoutParameters = ETparams;
            PhoneNumberLoginET.Text             = "05";
            PhoneNumberLoginET.TextSize         = 30;
            PhoneNumberLoginET.InputType        = InputTypes.ClassPhone;
            PhoneNumberLoginET.SetSingleLine();
            //Adding views to layout
            PhoneNumberLoginLayout.AddView(PhoneNumberLoginTV);
            phon.AddView(PhoneNumberLoginET);
            PhoneNumberLoginLayout.AddView(phon);
            OverAllLoginLayout.AddView(PhoneNumberLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining LoginLoginLayout
            LoginLoginLayout = new LinearLayout(this);
            LoginLoginLayout.LayoutParameters = WrapContParams;
            LoginLoginLayout.Orientation      = Orientation.Horizontal;
            LoginLoginLayout.SetGravity(GravityFlags.Left);
            //
            Login1      = new TextView(this);
            Login1.Text = "Log-In";
            Login1.SetTextColor(Color.Blue);
            Login1.Click   += this.Login1_Click;
            Login1.TextSize = 30;
            LoginLoginLayout.AddView(Login1);
            OverAllLoginLayout.AddView(LoginLoginLayout);
            //=======================================================================================================================================
            //=======================================================================================================================================
            //Defining Login Button Layout
            ButtonLoginLayout = new LinearLayout(this);
            ButtonLoginLayout.LayoutParameters = WrapContParams;
            ButtonLoginLayout.Orientation      = Orientation.Horizontal;
            //Defining Login Button
            LoginButton = new Button(this);
            LoginButton.LayoutParameters = WrapContParams;
            LoginButton.Text             = "Register";
            LoginButton.TextSize         = 40;
            LoginButton.Typeface         = Typeface.CreateFromAsset(Assets, "Katanf.ttf");
            LoginButton.Click           += this.LoginButton_Click;
            //Adding views
            CameraUsage();
            ButtonLoginLayout.AddView(LoginButton);
            OverAllLoginLayout.AddView(ButtonLoginLayout);
            OverAllLoginLayout.AddView(ImageViewProfileImage);
        }